Commit Upload Session

POST/deviceLogger/{token}/uploads/{uploadId}

Base URL: https://api.tinkermode.com

Conclude the specified upload session. If the upload was done in multiple parts, the parts will be combined back into a single file for storage. Note that although this is a POST request, a request body is not required.

Authentication

This endpoint does not require authentication.

Path parameters

NameTypeRequiredConstraintsDescription
tokenstringYesAuthentication token that is passed to device by DDP
uploadIdstringYesUpload session ID

Responses

200 Device log file has been successfully saved.

Content type: application/json

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
indexintegerNoIndex of the upload part.
sizeintegerNoNumber of bytes uploaded for the part.

403 Request failed because of invalid data or denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.