Step 4 EITHER Finalise uploaded file

Finalise an uploaded file

The endpoints described in Step 4 are an Either/Or choice. You should use either the Finalise an uploaded file endpoint to finalize and process a standard upload, or the Finalize additional file endpoint to finalize and save an additional uploaded file as a new asset.

post/api/v4/upload/{uploadId}/

Request

  • Base URL
    https://your-bynder-domain
  • URL
    https://your-bynder-domain/api/v4/upload/{uploadId}/
  • Auth
    none required

Path parameters

uploadIdstring required
Example:T3.fS5.5HPhtYFtm2b_.e7wVe910tL5XQutKw1jkMqlP5cPQVyZkOZxZ9lJiGUk4FIw6M0CFZ3xogTWrm.GPI2p2CaglQcAS5aH37zT_vHJnbtkebYbheXIQc_.M_6hM

Headers

Content-Type'application/x-www-form-urlencoded' required

Request body application/x-www-form-urlencoded

chunksnumber required

Total number of chunks uploaded.

original_filenamestring

Filename including special characters to be displayed in Bynder.

s3_filenamestring required

Base location of the uploaded file.

targetidstring required

Target id as returned by the initialise call.

Example request

{
  "chunks": 5,
  "original_filename": "Logo.png",
  "s3_filename": "api_uploads/159D8D4B-B981-49B8-BF0569FD144CB359/A29FABF0-26B8-44BF-890920E4C09E7C11/Logo.png",
  "targetid": "final/E3333526-7F87-49F9-B49C0054C0D31477/Logo.png"
}

Response

Accepted

batchIdstring
filenamestring
importIdstring
locationTypestring
outputstring
successinteger

Example response

{
  "batchId": "00000000-0000-0000-0000000000000000",
  "file": {
    "bucket": "BUCKET",
    "path": "final/2ba07d00-586a-4a44-b13c-c58598cfe828/IMG_1874.JPG",
    "type": "s3"
  },
  "filename": "final/2ba07d00-586a-4a44-b13c-c58598cfe828/IMG_1874.JPG",
  "importId": "000000000-0000-0000-0000000000000000",
  "locationType": "s3",
  "output": "final/2ba07d00-586a-4a44-b13c-c58598cfe828/",
  "success": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.