Przejdź do nawigacji

Create Asset

Create a bookable asset, such as a room or a piece of equipment.

Nagłówki

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

Żądanie

This endpoint expects an object.
namestringWymagany

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

groupslist of objectsOpcjonalny

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

ungrouped_rankinteger or nullOpcjonalny>=0

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

descriptionstringOpcjonalny
Description of the asset.
is_activebooleanOpcjonalnyDomyślnie true
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullOpcjonalny

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

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

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

customer_facing_namestringOpcjonalny

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.

Odpowiedź

Pomyślna odpowiedź

namestring

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

_idstring
groupslist of objectsOpcjonalny

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

ungrouped_rankinteger or nullOpcjonalny>=0

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

descriptionstringOpcjonalny
Description of the asset.
is_activebooleanOpcjonalnyDomyślnie true
Whether the asset can be booked. Inactive assets keep their booking history.
available_hoursobject or nullOpcjonalny

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

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

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

customer_facing_namestringOpcjonalny

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_unixintegerOpcjonalny

Unix timestamp (seconds since epoch)

updated_at_unixintegerOpcjonalny

Unix timestamp (seconds since epoch)

Błędy

422
Unprocessable Entity Error