Open App

Tasks

API endpoints for tasks

List tasks

GET /api/v1/tasks

Parameters

NameInTypeRequiredDescription
bucketquerystring (backlog, next_week, new, shaping, todo, in_progress, in_review, done, cancelled)No
projectIdquerystringNo
containerIdquerystringNo
routineBlockIdquerystringNo

Example request

curl -X GET \
"https://api.usemonoid.com/api/v1/tasks?bucket=<bucket>&projectId=<projectId>&containerId=<containerId>&routineBlockId=<routineBlockId>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Example response

Status: 200

{
  "data": [
    {
      "_id": "string",
      "userId": "string",
      "title": "string",
      "notes": "string",
      "doneAt": 0,
      "projectId": "string",
      "categoryId": "string",
      "containerId": "string",
      "bucket": "backlog",
      "routineBlockId": "string",
      "assigneeId": "string",
      "dueDate": "string",
      "updatedAt": 0
    }
  ]
}

Other statuses: 401, 403.

Response body type

{ data: Task[] }


Create task

POST /api/v1/tasks

Example request

curl -X POST \
"https://api.usemonoid.com/api/v1/tasks" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"
-d '{"title":"string","notes":"string","doneAt":0,"projectId":"string","categoryId":"string","bucket":"backlog","routineBlockId":"string","assigneeId":"string","dueDate":"string"}'

Example response

Status: 201

{
  "data": {
    "_id": "string",
    "userId": "string",
    "title": "string",
    "notes": "string",
    "doneAt": 0,
    "projectId": "string",
    "categoryId": "string",
    "containerId": "string",
    "bucket": "backlog",
    "routineBlockId": "string",
    "assigneeId": "string",
    "dueDate": "string",
    "updatedAt": 0
  }
}

Other statuses: 400, 401, 403, 500.

Response body type

{ data: Task }


Get task by id

GET /api/v1/tasks/{id}

Parameters

NameInTypeRequiredDescription
idpathstringYesPath parameter.

Example request

curl -X GET \
"https://api.usemonoid.com/api/v1/tasks/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Example response

Status: 200

{
  "data": {
    "_id": "string",
    "userId": "string",
    "title": "string",
    "notes": "string",
    "doneAt": 0,
    "projectId": "string",
    "categoryId": "string",
    "containerId": "string",
    "bucket": "backlog",
    "routineBlockId": "string",
    "assigneeId": "string",
    "dueDate": "string",
    "updatedAt": 0
  }
}

Other statuses: 401, 403, 404.

Response body type

{ data: Task }


Update task

PATCH /api/v1/tasks/{id}

Parameters

NameInTypeRequiredDescription
idpathstringYesPath parameter.

Example request

curl -X PATCH \
"https://api.usemonoid.com/api/v1/tasks/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"
-d '{"title":"string","notes":"string","doneAt":0,"projectId":"string","categoryId":"string","containerId":"string","bucket":"backlog","routineBlockId":"string","assigneeId":"string","dueDate":"string"}'

Example response

Status: 200

{
  "data": {
    "_id": "string",
    "userId": "string",
    "title": "string",
    "notes": "string",
    "doneAt": 0,
    "projectId": "string",
    "categoryId": "string",
    "containerId": "string",
    "bucket": "backlog",
    "routineBlockId": "string",
    "assigneeId": "string",
    "dueDate": "string",
    "updatedAt": 0
  }
}

Other statuses: 400, 401, 403, 404, 500.

Response body type

{ data: Task }


Delete task

DELETE /api/v1/tasks/{id}

Parameters

NameInTypeRequiredDescription
idpathstringYesPath parameter.

Example request

curl -X DELETE \
"https://api.usemonoid.com/api/v1/tasks/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Other statuses: 401, 403, 404, 500.

Response body type