跳到导航

创建地点

Add a new business location.

请求头

xi-api-keystring可选
xi-workspace-idstring必需

经销商 API 密钥操作的客户工作区。

请求

This endpoint expects an object.
namestring必需
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
addressstring可选

街道地址。

notesstring可选

面向客户的路线说明或其他备注,例如“建筑物后方免费停车”。

operating_hoursobject or null可选

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

customer_facing_namestring可选

Name shown to customers; empty reuses name.

max_concurrent_appointmentsinteger可选1-999默认为 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.

is_activeboolean可选默认为 true

地点是否启用。停用地点不接受预约。

响应

成功响应

namestring
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
idstring

地点 ID。

is_activeboolean只读

地点是否启用。停用地点不接受预约。

addressstring可选

街道地址。

notesstring可选

面向客户的路线说明或其他备注,例如“建筑物后方免费停车”。

operating_hoursobject可选

此地点的营业时间。

customer_facing_namestring可选

Name shown to customers; empty reuses name.

max_concurrent_appointmentsinteger可选1-999默认为 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 null可选

此地点停用时的 Unix 时间戳。处于活跃状态时为 None。

deactivation_reasonenum or null可选

该地点被停用的原因。启用时为 None。

允许的值:

错误

422
Unprocessable Entity Error