Task
Module endpoints
DELETE /tasks/:id
DELETE /tasks/:id
DELETE
http://api.slyk.io/tasks/:id
Deletes the task
with given id
.
204
No Content
GET /tasks
GET /tasks
GET
https://api.slyk.io/tasks
Returns a paginated list of tasks
.
Name | Type | Example |
enabled |
|
|
featured |
|
|
id |
|
|
name |
|
|
order |
|
|
type |
|
|
GET /tasks/:id
GET /tasks/:id
GET
https://api.slyk.io/tasks/:id
Gets the task details of the given id
.
PATCH /tasks/:id
PATCH /tasks/:id
PATCH
https://api.slyk.io/tasks/:id
Patches the task
details of the given id
.
Field | Type | Required | Description |
amount |
|
| Task amount value. |
buttonLabel |
|
| Task button label. |
customData |
|
| Can store any additional information about the task. |
description |
|
| Task description. |
enabled |
|
| Task enable indicator. |
featured |
|
| Task featuring indicator. |
image |
|
| Task image. |
name |
|
| Task name. |
order |
|
| Task order value. |
surveyUrl |
|
| Task survey URL. |
thumbnail |
|
| Task thumbnail URL. |
type |
|
| Task type. |
POST /tasks
POST /tasks
POST
https://api.slyk.io/tasks
Creates a new task
.
Field | Type | Required | Description |
amount |
|
| Task amount value. |
buttonLabel |
|
| Task button label. |
customData |
|
| Can store any additional information about the task. |
description |
|
| Task description. |
enabled |
|
| Task enable indicator. |
featured |
|
| Task featuring indicator. |
image |
|
| Task image. |
name |
|
| Task name. |
order |
|
| Task order value. |
surveyUrl |
|
| Task survey URL. |
thumbnail |
|
| Task thumbnail URL. |
type |
|
| Task type. |
POST /tasks/:id/complete
POST /tasks/:id/complete
POST
http://api.slyk.io/tasks/:id/complete
Completes the task
with the given id
.
Field | Type | Required | Description |
userId |
|
| User identifier that completed the task. |
POST /tasks/:id/reorder
POST /tasks/:id/reorder
POST
http://api.slyk.io/tasks/:id/reorder
Reorders the task
with the given id
.
Field | Type | Required | Description |
subsequentId |
|
| Subsequent task identifier. |
Last updated