Skip to navigation

Update Asset

Update an asset. Only the fields sent are changed.

Path parameters

asset_idstringRequired

ID of the asset. Returned when you create one; list them with GET /v1/reception/assets.

Headers

xi-api-keystringOptional
xi-workspace-idstringRequired
The customer workspace a reseller's API key acts on.

Request

This endpoint expects an object.
groupslist of objectsOptional

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

ungrouped_rankinteger or nullOptional

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

namestringOptional

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

descriptionstringOptional
Description of the asset.
is_activebooleanOptional
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullOptional

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

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

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

customer_facing_namestringOptional

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.

Response

Successful Response
namestring

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

idstring
The asset's ID.
groupslist of objectsOptional

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

ungrouped_rankinteger or nullOptional>=0

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

descriptionstringOptional
Description of the asset.
is_activebooleanOptionalDefaults to true
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullOptional

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

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

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

customer_facing_namestringOptional

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_unixintegerOptional
When this was created, as a Unix timestamp in seconds.
updated_at_unixintegerOptional
When this was last updated, as a Unix timestamp in seconds.

Errors

422
Unprocessable Entity Error