Ir para a navegação

Update Location

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

Parâmetros de caminho

location_idstringObrigatório

Cabeçalhos

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

Solicitação

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

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

customer_facing_namestringOpcional

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOpcional

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_activebooleanOpcional

Resposta

Resposta bem-sucedida

namestring
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
_idstring
is_activebooleanSomente leitura
addressstringOpcional
Street address.
notesstringOpcional
Directions or other notes for customers, e.g. 'Free parking behind the building'.
operating_hoursobjectOpcional
customer_facing_namestringOpcional

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOpcional1-999Padrão é 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 nullOpcional
Unix timestamp when this location was deactivated. None when active.
deactivation_reasonenum or nullOpcional
Why this location was deactivated. None when active.
Valores permitidos:

Erros

422
Unprocessable Entity Error