Connect API: Changes to Asset Upload API

If you are utilizing the create asset upload job API, the following changes will impact you:

From 15/Oct/2024, the asset upload job API will return the UUID of the job ID instead of the asset ID as the response. An example response:

{
  "job": {
    "id": "e08861ae-3b29-45db-8dc1-1fe0bf7f1cc8",
    "status": "in_progress"
  }
}

To retrieve the asset ID you should utilize the /v1/asset-uploads/{jobId} endpoint to poll for a successful response.

A successful response:

{
  "job": {
    "id": "e08861ae-3b29-45db-8dc1-1fe0bf7f1cc8",
    "status": "success",
    "asset": {
      "id": "Msd59349ff",
      "name": "My Awesome Upload",
      "tags": [
        "image",
        "holiday",
        "best day ever"
      ],
      "created_at": 1377396000,
      "updated_at": 1692928800,
      "thumbnail": {
        "width": 595,
        "height": 335,
        "url": "https://document-export.canva.com/Vczz9/zF9vzVtdADc/2/thumbnail/0001.png?<query-string>"
      }
    }
  }
}
1 Like

thanks for the heads up.

1 Like