Tasks
6 routes. Paths are relative to https://api.intersink.com/v1.
- GET/tasksList the signed-in user's tasks (filter/search)
- POST/tasksCreate a task
- GET/tasks/{id}Get a single task
- PATCH/tasks/{id}Edit a task / tick it off / un-tick it
- DELETE/tasks/{id}Delete a task (returns the deleted task for Undo)
- GET/tasks/summaryTask counts for the tiles and sidebar badge
List the signed-in user's tasks (filter/search)
GET/tasks
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| status | string, query | One of: "open", "done", "all". |
| due | string, query | One of: "overdue", "today", "upcoming", "none". |
| q | string, query | At most 200 characters. |
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1. |
| sort | string, query | One of: "due_date", "created_at", "priority". |
Response
200. The payload in data is not described in the spec yet.
Create a task
POST/tasks
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json
| Field | Type | Description |
|---|---|---|
| titlerequired | string | At most 200 characters. |
| notes | string | At most 2000 characters. |
| due_date | string | |
| priority | string | One of: "high", "medium", "low". |
| business_id | string |
Response
201. The payload in data is not described in the spec yet.
Get a single task
GET/tasks/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
Edit a task / tick it off / un-tick it
PATCH/tasks/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| title | string | At most 200 characters. |
| notes | string | At most 2000 characters. |
| due_date | string | |
| priority | string | One of: "high", "medium", "low". |
| business_id | string | |
| done | boolean |
Response
200. The payload in data is not described in the spec yet.
Delete a task (returns the deleted task for Undo)
DELETE/tasks/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
Task counts for the tiles and sidebar badge
GET/tasks/summary
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. The payload in data is not described in the spec yet.