Task Priorities
6 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List task priorities for the org (optionally filtered by space)#
/task-prioritiesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceId | Query | string | – |
is_active | Query | string | – |
search | Query | string | – |
Antworten
- 200Priorities returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/task-priorities" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a task priority#
/task-prioritiesTokenRequest-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) |
sort_order | number | |
is_default | boolean | |
is_active | boolean |
Antworten
- 201Priority created
curl -X POST "https://xapi.ambertech.cloud/api/v1/task-priorities" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Critical","key":"critical","color":"#EF4444"}'Get a task priority by ID#
/task-priorities/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Priority returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/task-priorities/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a task priority#
/task-priorities/{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 | |
color | string | |
icon | object | |
sort_order | number | |
is_default | boolean | – |
is_active | boolean | – |
Antworten
- 200Priority updated
curl -X PUT "https://xapi.ambertech.cloud/api/v1/task-priorities/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationId":"…","name":"Critical","color":"#EF4444"}'Patch action: toggle_active, set_default, reorder, duplicate#
/task-priorities/{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. |
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_active | boolean | For toggle_active |
new_name | string | For duplicate |
items | string[] | For reorder — array of { id, sort_order } |
Antworten
- 200Action applied
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/task-priorities/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"toggle_active"}'Delete a task priority (blocked if in use by tasks)#
/task-priorities/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Priority deleted
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/task-priorities/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"