Labels
Create and delete labels within a project, and assign or remove labels from tasks.
|
Endpoints
| GET | /api/v1/project/projects/{id}/labels | List labels |
| POST | /api/v1/project/projects/{id}/labels | Create a label |
| DELETE | /api/v1/project/projects/{id}/labels/{lid} | Delete a label |
| POST | /api/v1/project/projects/{id}/tasks/{tid}/labels | Add label to task |
| DELETE | /api/v1/project/projects/{id}/tasks/{tid}/labels/{lid} | Remove label from task |
GET
/api/v1/project/projects/{id}/labelsList labels
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Project ID |
Code Examples
curl "https://api.blueai.jp/api/v1/project/projects/proj_123e4567e89b12d3a456426614174000/labels" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/project/projects/{id}/labelsCreate a label
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Project ID |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/project/projects/proj_123e4567e89b12d3a456426614174000/labels" \
-H "Cookie: better-auth.session_token=<token>"DELETE
/api/v1/project/projects/{id}/labels/{lid}Delete a label
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Project ID |
lid | string | Optional | Label ID |
Code Examples
curl -X DELETE "https://api.blueai.jp/api/v1/project/projects/proj_123e4567e89b12d3a456426614174000/labels/lbl_123e4567e89b12d3a456426614174000" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/project/projects/{id}/tasks/{tid}/labelsAdd label to task
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Project ID |
tid | string | Optional | Task ID |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/project/projects/proj_123e4567e89b12d3a456426614174000/tasks/task_123e4567e89b12d3a456426614174000/labels" \
-H "Cookie: better-auth.session_token=<token>"DELETE
/api/v1/project/projects/{id}/tasks/{tid}/labels/{lid}Remove label from task
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Project ID |
tid | string | Optional | Task ID |
lid | string | Optional | Label ID |
Code Examples
curl -X DELETE "https://api.blueai.jp/api/v1/project/projects/proj_123e4567e89b12d3a456426614174000/tasks/task_123e4567e89b12d3a456426614174000/labels/lbl_123e4567e89b12d3a456426614174000" \
-H "Cookie: better-auth.session_token=<token>"