Hoppa till navigering

Update Asset

Update an asset. Only the fields sent are changed.

Sökvägsparametrar

asset_idstringObligatorisk

Headers

xi-api-keystringValfri
xi-workspace-idstring or nullValfri
The customer workspace a reseller's API key acts on.

Förfrågan

This endpoint expects an object.
groupslist of objectsValfri

Group memberships for this item. Each entry carries the group label and the item’s 0-based rank within that group.

ungrouped_rankinteger or nullValfri

Display position among items with no group; null sorts last. Change it with the reorder endpoint.

namestringValfri

Internal/admin name of the asset, shown in the dashboard and owner notifications.

descriptionstringValfri
Description of the asset.
is_activebooleanValfri
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullValfri

Custom availability hours for this asset. Null means follow the assigned location’s operating_hours (requires location_id).

photo_urlstring or nullValfriformat: "uri"1-2083 characters
URL of a photo of the asset.
location_idstring or nullValfri

Location this asset belongs to; empty means available at all locations.

customer_facing_namestringValfri

Optional public-facing label. When empty, name is shown to customers too. name stays the internal/admin label used in the dashboard and business-owner notifications.

Svar

Lyckat svar
namestring

Internal/admin name of the asset, shown in the dashboard and owner notifications.

_idstring
groupslist of objectsValfri

Group memberships for this item. Each entry carries the group label and the item’s 0-based rank within that group.

ungrouped_rankinteger or nullValfri>=0

Display position among items with no group; null sorts last. Change it with the reorder endpoint.

descriptionstringValfri
Description of the asset.
is_activebooleanValfriStandard är true
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullValfri

Custom availability hours for this asset. Null means follow the assigned location’s operating_hours (requires location_id).

photo_urlstring or nullValfriformat: "uri"1-2083 characters
URL of a photo of the asset.
location_idstring or nullValfri

Location this asset belongs to; empty means available at all locations.

customer_facing_namestringValfri

Optional public-facing label. When empty, name is shown to customers too. name stays the internal/admin label used in the dashboard and business-owner notifications.

created_at_unixintegerValfri

Unix timestamp (seconds since epoch)

updated_at_unixintegerValfri

Unix timestamp (seconds since epoch)

Fel

422
Unprocessable Entity Error