Create activity start


Creates a new activity for client application. If you want to put all your uploads in this newly created activity, you have set to the activity tag (returned in this activityStart api) in the header X-Activity-Tag of all the subsequent api calls.

For example, in the request below the X-Activity-Tag is passed which contains the activity tag of the new created activity.

POST /sdk/v2/files/resumable HTTP/1.1
Host: Endpoint-URL
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSU
Content-Type: application/json
X-Activity-Tag: Q9vUi-3fOfIL93pNuuiCzErMfSAbRGpUxoBxwI73

Endpoint URL: {network.internalDNSName or network.proxyURL} received in DeviceInformation

Request Syntax

POST /v1/activityStart

Request Headers

Parameter Description Required
Authorization An access token with nas_read_write scope.

Value of type: string

Request Query Parameters

Parameter Description Required
type The type of activity. 1 is for normal uploads, 2 is for autobackup uploads. Other values are reserved for future use.

Value of type: integer

Default: 1

201 Response

The normal case will be 201.

Response Payload

Parameter Description Required
ActivityStart The Activity Start object

Object of type: ActivityStart


Sample request to create a tag for starting a new activity.


POST /sdk/v1/activityStart HTTP/1.1
Host: Endpoint-URL
Authorization: Bearer 9e9d3d16-f9b1-43dc-8599-d1db6fcedfa9


HTTP/1.1 201 Created
Vary: Origin
Date: Thu, 27 Apr 2017 23:22:24 GMT
Content-Length: 50
Content-Type: text/plain; charset=utf-8


Have question about this section?