Task type
INFO
Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.
POST /task-type/get-by-id
Get a task type by its _id.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
_id | string | Yes |
json
{
"_id": "64b7f4d9e2b3b6a0b7c5d80a"
}Response
| Field | Type | Description |
|---|---|---|
_id | string | |
name | string | |
color | string | |
is_default | boolean | |
is_deleted | boolean | |
created_at | string (date-time) | |
updated_at | string (date-time) |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "string",
"name": "Follow-up call",
"color": "#FF9800",
"is_default": false,
"is_deleted": false,
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
},
"time": "2025-05-01T12:00:00Z"
}POST /task-type/paging
Paginated list of task types.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Default: 1 |
limit | number | Yes | Default: 20 |
search | string | No | Search by name. |
json
{
"page": 1,
"limit": 20,
"search": "string"
}Response
| Field | Type | Description |
|---|---|---|
list | object[] | |
list[]._id | string | |
list[].name | string | |
list[].color | string | |
list[].is_default | boolean | |
list[].is_deleted | boolean | |
list[].created_at | string (date-time) | |
list[].updated_at | string (date-time) | |
total | number |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"list": [
{
"_id": "string",
"name": "Follow-up call",
"color": "#FF9800",
"is_default": false,
"is_deleted": false,
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
}
],
"total": 42
},
"time": "2025-05-01T12:00:00Z"
}This page is generated from the OpenAPI spec.