Task

Module endpoints

DELETE /tasks/:id

DELETE http://api.slyk.io/tasks/:id

Deletes the task with given id.

204 No Content

GET /tasks

GET https://api.slyk.io/tasks

Returns a paginated list of tasks.

GET /tasks/:id

GET https://api.slyk.io/tasks/:id

Gets the task details of the given id.

{
  "data": {
    "amount": "1.00000000",
    "available": true,
    "buttonLabel": "waldo",
    "createdAt": "2020-08-10T10:00:00.000Z",
    "customData": {},
    "description": "Facebook bonus task",
    "enabled": true,
    "featured": true,
    "id": "fc78d28f-a8dd-49de-a22f-722fe3bd26c7",
    "imageUrl": "http://slyk-io/fb-image.png",
    "metadata": {
      "buttonLabel": "waldo",
      "surveyUrl": "http://survey.com"
    },
    "name": "Share your link on Facebook",
    "surveyUrl": "http://survey.com",
    "thumbnailUrl": "http://slyk-io/fb-thumbnail.png",
    "type": "system",
    "updatedAt": "2020-08-10T10:00:00.000Z"
  }
}

PATCH /tasks/:id

PATCH https://api.slyk.io/tasks/:id

Patches the task details of the given id.

POST /tasks

POST https://api.slyk.io/tasks

Creates a new task.

POST /tasks/:id/complete

POST http://api.slyk.io/tasks/:id/complete

Completes the task with the given id.

POST /tasks/:id/reorder

POST http://api.slyk.io/tasks/:id/reorder

Reorders the task with the given id.

Last updated