跳到导航

更新经销商工作区

更新客户工作区。仅更改已发送的字段。

路径参数

workspace_idstring必需

客户工作区 ID。配置时返回;可使用 GET /v1/reception/reseller/workspaces 列出。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
metadatamap from strings to strings可选

替换工作区的完整元数据映射;发送 {} 可清空。省略则保持不变。

响应

成功响应

workspace_idstring
business_namestring
billing_tierstring or null
receptionist_countinteger
calls_last_30_daysinteger
created_at_unixinteger
subscriptionobject or null可选

由经销商管理的订阅(如果该工作区有)。None 表示经销商未在此销售任何内容:尚未分配套餐,或工作区自行支付订阅费用(参见 charge_customer)。

charge_customerboolean可选默认为 false

工作区自行支付订阅费用,因此无法在此分配或更改其套餐。

has_payment_issueboolean可选默认为 false
A charge for this workspace is unpaid. Assigning or changing a tier is refused until it clears, so surface it rather than letting it fail.
onboarding_completed_at_unixinteger or null可选

引导流程完成的时间。在此之前,引导向导可能会替换或删除工作区的业务数据。

metadatamap from strings to strings可选默认为 {}

为工作区设置的自定义键值对。

错误

422
Unprocessable Entity Error