Custom Fields
8 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List custom fields for the current organization#
/custom-fieldsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceId | Query | string | UUID of space (returns org + space fields) |
field_type | Query | string | Filter by field type (text, number, select, etc.) |
is_active | Query | string | true or false |
search | Query | string | Search in name or description |
is_deleted | Query | string | true to fetch deleted fields |
context | Query | string | Filter by context (task, process, etc.) |
scope | Query | string | organization or space |
Antworten
- 200Custom fields returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/custom-fields" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a custom field#
/custom-fieldsTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | |
field_key | string | Unique field key within the organization. Auto-generated if omitted. |
field_typePflicht | string | Werte: |
scope | string | Werte: |
space_id | object | – |
description | object | – |
name_i18n | object | – |
description_i18n | object | – |
default_value | object | – |
options | object[] | – |
validation_rules | object | – |
contexts | string[] | – |
is_active | boolean | – |
sort_order | number | – |
organizationId | string | Ignored — org comes from auth token |
Antworten
- 201Custom field created
curl -X POST "https://xapi.ambertech.cloud/api/v1/custom-fields" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Priority","field_type":"string"}'Get a custom field by id#
/custom-fields/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Custom field returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/custom-fields/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a custom field#
/custom-fields/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
id | string | – |
field_type | string | – |
field_key | string | – |
name | string | – |
description | object | – |
name_i18n | object | – |
description_i18n | object | – |
default_value | object | – |
options | FieldOptionDto[] | – |
validation_rules | object | – |
contexts | string[] | – |
is_active | boolean | – |
sort_order | number | – |
Antworten
- 200Custom field updated
curl -X PUT "https://xapi.ambertech.cloud/api/v1/custom-fields/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"…","field_type":"…","field_key":"…"}'Perform a maintenance action (toggle_active, restore, permanent_delete)#
/custom-fields/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
actionPflicht | string | Werte: |
is_active | boolean | Required when action is `toggle_active`; new `is_active` value. |
Antworten
- 200Action applied
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/custom-fields/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"toggle_active"}'Soft delete a custom field#
/custom-fields/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Custom field soft-deleted
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/custom-fields/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Generate a unique field key for a given name#
/custom-fields/generate-keyTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | |
space_id | object | Optional space id for scoped uniqueness. Org-level keys still shadow all spaces. |
organizationId | string | Ignored — org comes from auth token |
Antworten
- 200Returns `{ field_key }`
curl -X POST "https://xapi.ambertech.cloud/api/v1/custom-fields/generate-key" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Business Impact"}'Bulk reorder custom fields#
/custom-fields/reorderTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
field_ordersPflicht | CustomFieldOrderDto[] | – |
field_orders[].assignment_idPflicht | string | – |
field_orders[].sort_orderPflicht | number | – |
Antworten
- 200Custom fields reordered
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/custom-fields/reorder" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"field_orders":[]}'