asset-objects
13 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List asset objects in a schema (optionally filtered by type)#
/spaces/{spaceId}/assets/schemas/{schemaId}/objectsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
schemaIdPflicht | Pfad | string | Schema UUID |
filter | Query | any | JSON-encoded condition group: {"combinator":"and"|"or","rules":[{"field","operator","value"}]}. Fields are base columns (name, object_key, description, object_type_id, created_at, updated_at) or schema attributes prefixed attr_<field_key>. Flat only — nested groups are rejected. |
search | Query | any | Filter by name or object_key (case-insensitive substring match) |
sortDirection | Query | any | Sort direction: asc | desc (default: desc) |
sortField | Query | any | Sort column: object_key | name | created_at | updated_at, or attr_<field_key> for a sortable schema attribute (default: created_at) |
pageSize | Query | any | Results per page (default: 50) |
page | Query | any | Page number (default: 1) |
objectTypeId | Query | any | Filter by object type UUID |
Antworten
- 200Paginated list of objects with total count
- 401Not authenticated
- 403Missing view_assets permission or module disabled
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a new asset object instance#
/spaces/{spaceId}/assets/schemas/{schemaId}/objectsTokenA unique object_key (e.g. CMDB-42) is auto-assigned by a DB trigger.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
schemaIdPflicht | Pfad | string | Schema UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
object_type_idPflicht | string | – |
namePflicht | string | – |
description | string | – |
icon | string | – |
color | string | – |
attribute_values | object | Attribute values keyed by field_key |
permissions | object | – |
Antworten
- 201Asset object created; object_key auto-assigned
- 400Validation error or object type not in this schema
- 401Not authenticated
- 403Missing manage_assets permission or module disabled
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"object_type_id":"…","name":"…"}'Get a single asset object by ID#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
idPflicht | Pfad | string | Object UUID |
schemaIdPflicht | Pfad | any | Schema UUID |
Antworten
- 200Asset object returned
- 401Not authenticated
- 403Missing view_assets permission or module disabled
- 404Asset object not found
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update an asset object (optimistic lock via version)#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
idPflicht | Pfad | string | Object UUID |
schemaIdPflicht | Pfad | any | Schema UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
description | string | – |
icon | string | – |
color | string | – |
attribute_values | object | – |
permissions | object | – |
object_type_id | string | New object type ID (must belong to same schema) |
version | number | – |
Antworten
- 200Asset object updated
- 400Validation error
- 401Not authenticated
- 403Missing manage_assets permission or module disabled
- 404Asset object not found
- 409Version conflict — object was updated by another request
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","description":"…","icon":"…"}'Delete an asset object permanently#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
idPflicht | Pfad | string | Object UUID |
schemaIdPflicht | Pfad | any | Schema UUID |
Antworten
- 200Asset object deleted
- 401Not authenticated
- 403Missing manage_assets permission or module disabled
- 404Asset object not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Upload or replace the image for an asset object (max 5 MB)#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}/imageTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
idPflicht | Pfad | string | Object UUID |
schemaIdPflicht | Pfad | any | Schema UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
filePflicht | string (binary) | Image file (max 5 MB, jpeg/png/gif/webp/svg) |
Antworten
- 201Image uploaded; object returned with image_path set
- 400Missing file, invalid type, or file too large
- 401Not authenticated
- 403Missing edit_assets permission or module disabled
- 404Asset object not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}/image" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-F "file=@./datei.pdf"Remove the custom image from an asset object#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}/imageTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
idPflicht | Pfad | string | Object UUID |
schemaIdPflicht | Pfad | any | Schema UUID |
Antworten
- 200Image removed; object returned with image_path null
- 401Not authenticated
- 403Missing edit_assets permission or module disabled
- 404Asset object not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/{id}/image" \
-H "Authorization: Bearer $XISUITE_TOKEN"Export the objects of one object type as csv, xls or xlsx#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/exportTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
schemaIdPflicht | Pfad | string | Schema UUID |
formatPflicht | Query | string | csv | xls | xlsx |
objectTypeIdPflicht | Query | string | Object type UUID — decides the exported columns |
sortDirection | Query | any | – |
sortField | Query | any | – |
filter | Query | any | Same JSON-encoded condition group as the list endpoint |
search | Query | any | – |
Antworten
- 200File download
- 400Unknown format, or the selection cannot be read in full
- 401Not authenticated
- 403Missing view_assets permission or module disabled
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/export" \
-H "Authorization: Bearer $XISUITE_TOKEN"POST /spaces/{spaceId}/assets/schemas/{schemaId}/objects/import#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/importTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Antworten
- 201Erstellt
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/import" \
-H "Authorization: Bearer $XISUITE_TOKEN"Count what an import would do, without writing anything#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/import/dry-runTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
schemaIdPflicht | Pfad | string | – |
Antworten
- 201Erstellt
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/import/dry-run" \
-H "Authorization: Bearer $XISUITE_TOKEN"POST /spaces/{spaceId}/assets/schemas/{schemaId}/objects/import/preview#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/import/previewTokenAntworten
- 201Erstellt
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/import/preview" \
-H "Authorization: Bearer $XISUITE_TOKEN"Search objects across the viewable object types of a schema#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/searchTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
schemaIdPflicht | Pfad | string | Schema UUID |
objectTypeId | Query | any | Limit the search to one object type UUID |
pageSize | Query | any | 1-50, default 25 |
page | Query | any | – |
search | Query | any | Case-insensitive match on name, object key or attribute values |
Antworten
- 200Matching objects with total count
- 401Not authenticated
- 403Missing view_assets permission or module disabled
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/search" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get aggregate stats for a schema (total + updated in 24h)#
/spaces/{spaceId}/assets/schemas/{schemaId}/objects/statsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | Space UUID |
schemaIdPflicht | Pfad | string | Schema UUID |
Antworten
- 200Schema stats returned
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/assets/schemas/{schemaId}/objects/stats" \
-H "Authorization: Bearer $XISUITE_TOKEN"