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
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
token | string | Yes | Authentication token that is passed to device by DDP | |
uploadId | string | Yes | Upload session ID |
Responses
200 Device log file has been successfully saved.
Content type: application/json
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
index | integer | No | Index of the upload part. | |
size | integer | No | Number of bytes uploaded for the part. |
403 Request failed because of invalid data or denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |