Logo
OpenText Developer Cloud public resources API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
suppress_response_codes
string This can be left without an assignment or you can use itself, suppress_response_codes=suppress_response_codes



HEADERS

Key Datatype Required Description 
Content-Range
string When 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-Type
string




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" }



Curl
curl -X POST 'https://capture.ot2.opentext.com/cp-rest/v2/session/files/:fileId?suppress_response_codes=in adipisicing?suppress_response_codes=in adipisicing' -H 'Content-Range: in adipisicing' -H 'Content-Type: text/plain' -d '["i","n"," ","a","d","i","p","i","s","i","c","i","n","g"]'

ENDPOINTS