User Preferences
14 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Get column preferences for a view#
/users/column-preferencesTokenReturns saved preferences or defaults (is_default: true) when no record exists.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
viewIdPflicht | Query | string | – |
Antworten
- 200Column preferences returned
- 400viewId is required
curl -X GET "https://xapi.ambertech.cloud/api/v1/users/column-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN"Save column preferences for a view (upsert)#
/users/column-preferencesTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
view_idPflicht | string | View identifier (e.g. tasks, processes, gdpr, list-items, backlog, plan_gantt) |
column_configPflicht | ColumnConfigItemDto[] | – |
column_config[].idPflicht | string | Column identifier |
column_config[].visiblePflicht | boolean | Whether the column is visible |
column_config[].orderPflicht | number | Display order (0-based) |
Antworten
- 201Preferences saved
curl -X POST "https://xapi.ambertech.cloud/api/v1/users/column-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"view_id":"…","column_config":[]}'Reset column preferences to defaults#
/users/column-preferencesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
viewIdPflicht | Query | string | – |
Antworten
- 200Preferences reset
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/users/column-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get recent items#
/users/recent-itemsTokenReturns recently accessed items for the authenticated user, ordered by most recent first.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
limit | Query | number | Maximum number of items to return (default: 10) |
item_type | Query | string | Filter by item type (e.g., space, page, issue) |
Antworten
- 200Recent items returned
- 401Not authenticated
curl -X GET "https://xapi.ambertech.cloud/api/v1/users/recent-items" \
-H "Authorization: Bearer $XISUITE_TOKEN"Track item access#
/users/recent-itemsTokenRecords or updates a recently accessed item for the authenticated user.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
item_typePflicht | string | Type of item accessed |
item_idPflicht | string | UUID of the accessed item |
item_namePflicht | string | Display name of the item |
item_key | string | Short key or identifier |
item_icon | string | Icon identifier |
item_metadata | object | Additional metadata |
Antworten
- 201Item access tracked
- 400Validation error
- 401Not authenticated
curl -X POST "https://xapi.ambertech.cloud/api/v1/users/recent-items" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"item_type":"space","item_id":"550e8400-e29b-41d4-a716-446655440000","item_name":"Project Alpha"}'Clear all recent items#
/users/recent-itemsTokenDeletes all recent item records for the authenticated user.
Antworten
- 200All recent items cleared
- 401Not authenticated
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/users/recent-items" \
-H "Authorization: Bearer $XISUITE_TOKEN"Remove specific recent item#
/users/recent-items/{itemType}/{itemId}TokenDeletes a specific recent item by its type and ID for the authenticated user.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
itemTypePflicht | Pfad | string | Item type (e.g., space, page) |
itemIdPflicht | Pfad | string | UUID of the item |
Antworten
- 200Recent item removed
- 401Not authenticated
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/users/recent-items/{itemType}/{itemId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get sidebar preferences#
/users/sidebar-preferencesTokenReturns the authenticated user's sidebar configuration, or defaults if none set.
Antworten
- 200Sidebar preferences returned
- 401Not authenticated
curl -X GET "https://xapi.ambertech.cloud/api/v1/users/sidebar-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update sidebar preferences#
/users/sidebar-preferencesTokenUpdates the authenticated user's sidebar configuration. Only provided fields are merged.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
sections | string[] | Sidebar sections with id, visible flag, and order |
externalLinks | string[] | External links displayed in the sidebar |
spacesExpanded | boolean | Whether the spaces section is expanded |
recentItemsCount | number | Number of recent items to display (5–30) |
Antworten
- 200Sidebar preferences updated
- 400Validation error
- 401Not authenticated
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/users/sidebar-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sections":[],"externalLinks":[],"spacesExpanded":"true"}'Reset sidebar preferences#
/users/sidebar-preferences/resetTokenDeletes the stored sidebar configuration and returns defaults.
Antworten
- 201Sidebar preferences reset
- 401Not authenticated
curl -X POST "https://xapi.ambertech.cloud/api/v1/users/sidebar-preferences/reset" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get starred spaces#
/users/starred-spacesTokenReturns all spaces starred by the authenticated user, with space details.
Antworten
- 200Starred spaces returned
- 401Not authenticated
curl -X GET "https://xapi.ambertech.cloud/api/v1/users/starred-spaces" \
-H "Authorization: Bearer $XISUITE_TOKEN"Toggle star on a space#
/users/starred-spacesTokenStars a space if not already starred, or unstars it if already starred.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
space_idPflicht | string | UUID of the space to star or unstar |
Antworten
- 201Star toggled successfully
- 400Validation error
- 401Not authenticated
curl -X POST "https://xapi.ambertech.cloud/api/v1/users/starred-spaces" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"space_id":"550e8400-e29b-41d4-a716-446655440000"}'Get task comment sort preference#
/users/task-comment-preferencesTokenAntworten
- 200Sort preference returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/users/task-comment-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN"Save task comment sort preference (upsert)#
/users/task-comment-preferencesTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
sortPflicht | string | Task comment sort order Werte: |
then | string[] | Orders for comments with the same user name or text, applied in sequence (one created and one updated at most) Werte: |
Antworten
- 200Sort preference saved
- 400Validation error
curl -X PUT "https://xapi.ambertech.cloud/api/v1/users/task-comment-preferences" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sort":"oldest"}'