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
boolean
filter[enabled]=true
featured
boolean
filter[featured]=false
id
=
in
nin
filter[id]=7938e446-1c77-4513-8cb0-8b1f2e9f47b9
name
=
in
nin
filter[name]=foo
order
gte
lte
filter[order]=gte:0.5
type
=
in
nin
filter[type]=true
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
string
false
Task amount value.
buttonLabel
string
false
Task button label.
customData
object
false
Can store any additional information about the task.
description
string
false
Task description.
enabled
boolean
false
Task enable indicator.
featured
boolean
false
Task featuring indicator.
image
string
false
Task image.
name
string
false
Task name.
order
string
false
Task order value.
surveyUrl
string
false
Task survey URL.
thumbnail
string
false
Task thumbnail URL.
type
string
false
Task type.
POST /tasks
POST /tasks
POST
https://api.slyk.io/tasks
Creates a new task
.
Field
Type
Required
Description
amount
string
true
Task amount value.
buttonLabel
string
false
Task button label.
customData
object
false
Can store any additional information about the task.
description
string
true
Task description.
enabled
boolean
false
Task enable indicator.
featured
boolean
false
Task featuring indicator.
image
string
false
Task image.
name
string
true
Task name.
order
string
false
Task order value.
surveyUrl
string
false
Task survey URL.
thumbnail
string
false
Task thumbnail URL.
type
string
true
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
string
true
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
string
false
Subsequent task identifier.
Last updated