Appends or retries a stage file chunk.

POST {{baseUrl}}/session/files/:fileId?suppress_response_codes=in adipisicing

Chunking a file in pieces to the server requires that the POST be made to the URI represented by the src property or the URI provided by the Location header returned from the first chunk. Additional chunks append to the file and you can always retry/re-post the last chunk. Chunking requires the data for the file to be sent in base64 or binary encoding. The chunks need to be posted without gaps in order to be successful.

Request Params

KeyDatatypeRequiredDescription
suppress_response_codesstringThis can be left without an assignment or you can use itself, suppress_response_codes=suppress_response_codes

Request Body

["i", "n", " ", "a", "d", "i", "p", "i", "s", "i", "c", "i", "n", "g"]

HEADERS

KeyDatatypeRequiredDescription
Content-RangestringWhen using binary upload and chunking the upload, use this parameter to provide the range of bytes being uploaded. For e.g. "bytes 0-19999/60200", "bytes 20000-60199/60200"
Content-Typestring

RESPONSES

status: OK

{"returnStatus":{"status":200,"code":"OK0000","message":"","server":"WS-S842b1bccd3fd4d2e86b33a844adaf5c1"},"id":"f_128b1931b51643979a2580f5820dec4ftif","contentType":"image/jpeg","src":"https://{host}/cp-rest/session/v2/files/f_128b1931b51643979a2580f5820dec4fjpg","updated":"2016-03-31T22:22:35.1995491Z"}