task-links
3 endpoints
delete /task-links/{id}
Delete a task link
Requires authentication
Removes a typed task↔task relation by its link id.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | integer | yes | Task link id |
Responses
- 200 OK · object
- 401 Unauthorized · apimodel.ErrorEnvelope
- 404 Not Found · apimodel.ErrorEnvelope
get /tasks/{id}/links
List a task's links
Requires authentication
Returns the typed relations pointing out of and into this task, each hydrated with the referenced task's summary.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | integer | yes | Task id |
Responses
- 200 OK · object
- 401 Unauthorized · apimodel.ErrorEnvelope
- 404 Not Found · apimodel.ErrorEnvelope
post /tasks/{id}/links
Link two tasks
Requires authentication
Creates a typed relation from this task to a target task. Returns the created link.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | integer | yes | Source task id |
Request body: apimodel.CreateTaskLinkRequest
| Name | Type | Required | Description |
|---|---|---|---|
| targetId | integer | no | |
| type | string | no |
Responses
- 201 Created · object
- 400 Bad Request · apimodel.ErrorEnvelope
- 401 Unauthorized · apimodel.ErrorEnvelope
- 404 Not Found · apimodel.ErrorEnvelope
- 409 Conflict · apimodel.ErrorEnvelope