Task Statuses
10 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List task statuses for the org (optionally filtered by space)#
/task-statusesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceId | Query | string | – |
is_active | Query | string | – |
is_completed | Query | string | – |
search | Query | string | – |
with_transitions | Query | string | – |
Antworten
- 200Statuses returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/task-statuses" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a task status#
/task-statusesTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
organizationId | string | Legacy frontend compatibility only; ignored in favor of the authenticated organization. |
namePflicht | string | |
keyPflicht | string | Unique key (lowercase, underscores). Immutable after creation. |
colorPflicht | string | Hex color (#RRGGBB) |
icon | object | |
space_id | object | Space ID (null = org-level) |
category_id | string | Status category (To Do / In Progress / Done bucket). If omitted, the DB trigger auto-links by is_completed. Explicit null is not allowed — omit the field instead. |
sort_order | number | |
is_default | boolean | |
is_completed | boolean | Marks terminal/completed states (e.g. Done, Closed) |
is_active | boolean | |
allowed_transitions | string[] | IDs of statuses this status can transition to |
Antworten
- 201Status created
curl -X POST "https://xapi.ambertech.cloud/api/v1/task-statuses" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"In Review","key":"in_review","color":"#F59E0B"}'Get a task status by ID#
/task-statuses/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
with_transitions | Query | string | Embed allowed transition IDs |
Antworten
- 200Status returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a task status#
/task-statuses/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
organizationId | string | Legacy frontend compatibility only; ignored in favor of the authenticated organization. |
name | string | |
key | string | Immutable. Accepted only when equal to the stored key; a different key is rejected. |
color | string | |
icon | object | |
sort_order | number | |
is_default | boolean | – |
is_completed | boolean | – |
is_active | boolean | – |
allowed_transitions | string[] | Replace the full transition target list |
category_id | string | Status category (To Do / In Progress / Done bucket). Explicit null is not allowed — omit the field to leave unchanged. |
Antworten
- 200Status updated
curl -X PUT "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationId":"…","name":"In Review","key":"in_review"}'Patch action: toggle_active, set_default, reorder, duplicate#
/task-statuses/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
organizationId | string | Legacy frontend compatibility only; ignored in favor of the authenticated organization. |
actionPflicht | string | Werte: |
name | string | Legacy PATCH compatibility: partial update when action is omitted. |
key | string | Legacy PATCH compatibility: immutable; accepted only when equal to the stored key when action is omitted. |
color | string | Legacy PATCH compatibility: partial update when action is omitted. |
icon | object | Legacy PATCH compatibility: partial update when action is omitted. |
sort_order | number | Legacy PATCH compatibility: partial update when action is omitted. |
is_default | boolean | Legacy PATCH compatibility: partial update when action is omitted. |
is_completed | boolean | Legacy PATCH compatibility: partial update when action is omitted. |
is_active | boolean | For toggle_active |
allowed_transitions | string[] | Legacy PATCH compatibility: replace transition target IDs when action is omitted. |
new_name | string | For duplicate |
category_id | string | Legacy PATCH compatibility: status category bucket when action is omitted. Explicit null is not allowed. |
items | string[] | For reorder — array of { id, sort_order } |
Antworten
- 200Action applied
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"toggle_active"}'Delete a task status (blocked if in use by tasks)#
/task-statuses/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Status deleted
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"List allowed transition target IDs for a status#
/task-statuses/{id}/transitionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Transition IDs returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}/transitions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Add a single transition target#
/task-statuses/{id}/transitionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 201Transition added
curl -X POST "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}/transitions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Bulk-replace transition targets for a status#
/task-statuses/{id}/transitionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Transitions replaced
curl -X PUT "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}/transitions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Remove a single transition target#
/task-statuses/{id}/transitionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Transition removed
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/task-statuses/{id}/transitions" \
-H "Authorization: Bearer $XISUITE_TOKEN"