Creates a new task.
Security
serverToken
Example:"2017-02-06T02:37:46Z"
- Mock serverhttps://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks
- integrationhttps://external.integration.tidepool.org/v1/tasks
- productionhttps://api.tidepool.org/v1/tasks
- dev1https://dev1.dev.tidepool.org/v1/tasks
- qa1https://qa1.development.tidepool.org/v1/tasks
- qa2https://qa2.development.tidepool.org/v1/tasks
curl -i -X POST \
https://tidepool.redocly.app/_mock/reference/task.v1/v1/tasks \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"type": "string",
"priority": 0,
"data": {},
"availableTime": "2017-02-06T02:37:46Z",
"expirationTime": "2017-02-06T02:37:46Z"
}'Task
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Response
{ "id": "354b6adc10bc417eb715a8e7b21d6031", "name": "string", "type": "string", "priority": 0, "data": {}, "availableTime": "2017-02-06T02:37:46Z", "expirationTime": "2017-02-06T02:37:46Z", "state": "running", "error": "string", "runTime": "2017-02-06T02:37:46Z", "duration": 0, "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z" }