Asset Schemas (Lists)
11 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Get schema by key#
GET
/spaces/{spaceId}/lists/key/{key}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
keyPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/key/{key}" \
-H "Authorization: Bearer $XISUITE_TOKEN"List all schemas in a space#
GET
/spaces/{spaceId}/lists/schemasTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a schema#
POST
/spaces/{spaceId}/lists/schemasTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | – |
keyPflicht | string | Unique key per space, lowercase alphanumeric + underscores |
description | string | – |
icon | string | – |
fields_definition | object[] | – |
column_config | ColumnConfigItemDto[] | – |
column_config[].idPflicht | string | Column identifier |
column_config[].visiblePflicht | boolean | Whether the column is visible |
column_config[].orderPflicht | number | Display order (0-based) |
settings | object | – |
permissions | object | – |
field_group_ids | string[] | – |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","key":"…"}'Get schema by ID#
GET
/spaces/{spaceId}/lists/schemas/{schemaId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a schema#
PUT
/spaces/{spaceId}/lists/schemas/{schemaId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
description | string | – |
icon | string | – |
column_config | ColumnConfigItemDto[] | – |
column_config[].idPflicht | string | Column identifier |
column_config[].visiblePflicht | boolean | Whether the column is visible |
column_config[].orderPflicht | number | Display order (0-based) |
settings | object | – |
permissions | object | – |
field_group_ids | string[] | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","description":"…","icon":"…"}'Soft delete a schema#
DELETE
/spaces/{spaceId}/lists/schemas/{schemaId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Add a column to a schema#
POST
/spaces/{spaceId}/lists/schemas/{schemaId}/columnsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
columnPflicht | ColumnConfigItemDto | – |
column.idPflicht | string | Column identifier |
column.visiblePflicht | boolean | Whether the column is visible |
column.orderPflicht | number | Display order (0-based) |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}/columns" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"column":"…"}'Reorder all columns#
PUT
/spaces/{spaceId}/lists/schemas/{schemaId}/columnsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
column_orderPflicht | ColumnOrderDto[] | – |
column_order[].columnIdPflicht | string | – |
column_order[].orderPflicht | number | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}/columns" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"column_order":[]}'Rename a column#
PUT
/spaces/{spaceId}/lists/schemas/{schemaId}/columns/{columnId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
columnIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
new_labelPflicht | string | New label for the column |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}/columns/{columnId}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"new_label":"…"}'Remove a column from a schema#
DELETE
/spaces/{spaceId}/lists/schemas/{schemaId}/columns/{columnId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
columnIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}/columns/{columnId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Export schema items as CSV#
GET
/spaces/{spaceId}/lists/schemas/{schemaId}/exportTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/lists/schemas/{schemaId}/export" \
-H "Authorization: Bearer $XISUITE_TOKEN"