Passer à la navigation

Update Location

Update an existing location. Only the fields sent are changed.

Paramètres de chemin

location_idstringRequis

En-têtes

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

Requête

This endpoint expects an object.
namestringOptionnel
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
addressstringOptionnel
Street address.
notesstringOptionnel
Directions or other notes for customers, e.g. 'Free parking behind the building'.
operating_hoursobject or nullOptionnel

Per-location operating hours. On create, omit to have the server prefill from the most recently added active location.

customer_facing_namestringOptionnel

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOptionnel

Maximum number of appointments that may overlap at this location at a single instant. Only enforced while the booking page setting concurrent_limit_enabled is on.

is_activebooleanOptionnel

Réponse

Réponse réussie

namestring
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
_idstring
is_activebooleanLecture seule
addressstringOptionnel
Street address.
notesstringOptionnel
Directions or other notes for customers, e.g. 'Free parking behind the building'.
operating_hoursobjectOptionnel
customer_facing_namestringOptionnel

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOptionnel1-999Par défaut 1

Maximum number of appointments that may overlap at this location at a single instant. Only enforced while the booking page setting concurrent_limit_enabled is on.

deactivated_at_unixinteger or nullOptionnel
Unix timestamp when this location was deactivated. None when active.
deactivation_reasonenum or nullOptionnel
Why this location was deactivated. None when active.
Valeurs autorisées:

Erreurs

422
Unprocessable Entity Error