Change subscription tier

以 Markdown 格式查看

Upgrade or downgrade tier, or change billing period for the same tier (e.g. monthly→yearly). Owner/billing_admin only. Supports Idempotency-Key. Downgrade with active VKs > new limit returns 409 CONFLICT_VK_QUOTA.

请求头

Authorizationstring必需

Bearer {access_token}

X-Workspace-Idstring必需
Workspace UUID
Idempotency-Keystring可选
Client UUID for idempotent request

请求

tier (free|pro|team|enterprise|contact), billingPeriod (monthly|yearly)

billingPeriodenum必需
tierenum必需

响应

data: updated subscription

错误

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error