Resolutions
7 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List resolutions for the org#
GET
/resolutionsTokenAntworten
- 200Resolutions returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/resolutions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a resolution#
POST
/resolutionsTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | |
keyPflicht | string | |
description | string | – |
sort_order | number | |
is_active | boolean |
Antworten
- 201Resolution created
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/resolutions" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Fixed","key":"fixed"}'Get a resolution by ID#
GET
/resolutions/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Resolution returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/resolutions/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a resolution#
PUT
/resolutions/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
description | string | – |
sort_order | number | – |
is_active | boolean | – |
Antworten
- 200Resolution updated
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/resolutions/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","description":"…","sort_order":0}'Delete a resolution#
DELETE
/resolutions/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Resolution deleted
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/resolutions/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Set a resolution as the default#
PATCH
/resolutions/{id}/set-defaultTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | – |
Antworten
- 200Default resolution set
Beispiel (cURL)
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/resolutions/{id}/set-default" \
-H "Authorization: Bearer $XISUITE_TOKEN"Bulk reorder resolutions#
PATCH
/resolutions/reorderTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
itemsPflicht | ReorderItemDto[] | – |
Antworten
- 200Resolutions reordered
Beispiel (cURL)
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/resolutions/reorder" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"items":[]}'