Requirements, permissions, request and response fields, and error handling.
Request and permissions
POSThttps://openapi.qwenwork.ai/v1/biz/members/{user_id}:assign-seat
Authentication: Authorization: Bearer <access_token>; use an access token obtained through user OAuth authorization.
Required business Scope: biz.seat.manage
Authorization method declared in the contract: Organization authorization (organization)
The platform must enable the Scope for the application. The user must have the required business permissions, and the target resource must be within their accessible scope. Availability of personal or organization authorization depends on the application's actual console configuration.
Behavior and limitations
Assign a seat to a frozen organization member, changing their status to active. user_id is the member UUID. No request body is required. The application requires biz.seat.manage authorization, and the operator requires seat management permission. The member must be within their management scope. Insufficient organization seats cause a business conflict. Members in pending or removed status and digital employees that do not require seats return the corresponding errors. Success returns the updated member profile. If the member is already active, repeated calls return the current profile.Path parameters
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
user_id | string | Yes | Target member UUID Format: "uuid" |
Request body
The public contract does not declare a request body. Do not add identity fields or undeclared business fields.Success response
Preserve each business API's original response structure. Do not add a commoncode/msg/data wrapper.
HTTP 200
Member seat assigned successfully. Response type:application/json
Copy
{
"biz_org_id": "00000000-0000-4000-8000-000000000002",
"biz_team_id": "00000000-0000-4000-8000-000000000003",
"blocked": false,
"dingtalk_uid": null,
"email": "member@example.com",
"first_name": "示例成员",
"last_name": "",
"phone_number": null,
"status": "active",
"user_id": "00000000-0000-4000-8000-000000000001",
"username": "example-member"
}
| Field | Type | Required | Description and constraints |
|---|---|---|---|
biz_org_id | string | Yes | — |
biz_team_id | string | Yes | — |
blocked | boolean | Yes | — |
dingtalk_uid | string | null | Yes | — |
email | string | null | Yes | — |
first_name | string | Yes | — |
last_name | string | Yes | — |
phone_number | string | null | Yes | — |
status | string | Yes | — |
user_id | string | Yes | — |
username | string | Yes | — |
Error responses
| HTTP | Description and handling |
|---|---|
400 | The request or operator identity profile does not meet business requirements. primary_contact_phone_required / primary_contact_email_required means both phone number and email are missing. Complete the profile before retrying. |
401 | Missing or invalid token. Check the organization-authorized access token. |
403 | Scope, operator permission, or organization/team scope checks failed. Verify the target member's scope and organization authorization. |
404 | The target member does not exist. Verify the member identifier and authorization scope. |
405 | Method Not Allowed |
409 | org_seat_count_reached means insufficient capacity; member_seat_exempt means the digital employee does not occupy a seat; seat_request_member_not_frozen means the member's status does not support the operation; enterprise_seat_lock_busy means seat operations are busy. Check capacity and status before proceeding. |
413 | Request Entity Too Large |
415 | Unsupported Media Type |
422 | Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail. |
429 | Too Many Requests |
500 | Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying. |
502 | Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying. |
503 | Biz service temporarily unavailable. For writes, verify the actual outcome before retrying. seat_projection_refresh_busy means the lock for refreshing expired capacity is busy. No new allocation is made in this attempt; retry is allowed. |
504 | Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying. |
Complete field contract
The JSON below contains this API's complete request, response, and error schemas, nested constraints, and public extension definitions. Copy it for reference. No success examples are inferred where none are declared.Expand the complete API OpenAPI JSON
Expand the complete API OpenAPI JSON
Copy
{
"components": {
"schemas": {
"BizDomainErrorResponse": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"detail": {
"type": "string"
},
"error": {
"type": "string"
},
"org_status_reason": {
"description": "Raw JSON value of the organization status reason; may be null"
},
"request_id": {
"type": "string"
},
"seat_count": {
"description": "Configured organization seat count, returned when provided by the domain error",
"format": "int64",
"type": "integer"
},
"seat_used": {
"description": "Used organization seat count, returned when provided by the domain error",
"format": "int64",
"type": "integer"
},
"trace_id": {
"type": [
"string",
"null"
]
}
},
"required": [
"error",
"detail",
"request_id",
"trace_id"
],
"type": "object"
},
"BizGatewayErrorResponse": {
"additionalProperties": false,
"properties": {
"code": {
"type": "integer"
},
"data": {
"type": "null"
},
"error_code": {
"type": "string"
},
"msg": {
"type": "string"
},
"request_id": {
"type": "string"
},
"trace_id": {
"type": "string"
}
},
"required": [
"code",
"msg",
"data",
"error_code"
],
"type": "object"
},
"MemberLookupRead": {
"additionalProperties": false,
"properties": {
"biz_org_id": {
"type": "string"
},
"biz_team_id": {
"type": "string"
},
"blocked": {
"type": "boolean"
},
"dingtalk_uid": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"phone_number": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"user_id": {
"type": "string"
},
"username": {
"type": "string"
}
},
"required": [
"user_id",
"username",
"first_name",
"last_name",
"email",
"phone_number",
"dingtalk_uid",
"biz_org_id",
"biz_team_id",
"status",
"blocked"
],
"type": "object"
},
"ValidationErrorResponse": {
"additionalProperties": false,
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationIssue"
},
"type": [
"array",
"null"
]
},
"error": {
"type": "string"
},
"request_id": {
"type": "string"
},
"trace_id": {
"type": [
"string",
"null"
]
}
},
"required": [
"error",
"detail",
"request_id",
"trace_id"
],
"type": "object"
},
"ValidationIssue": {
"additionalProperties": false,
"properties": {
"ctx": {
"additionalProperties": {},
"type": "object"
},
"input": {},
"loc": {
"items": {},
"type": [
"array",
"null"
]
},
"msg": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"type",
"loc",
"msg",
"input"
],
"type": "object"
}
},
"securitySchemes": {
"OpenPlatformBearer": {
"description": "Organization-authorized application access token; Scope does not replace operator permissions or resource isolation",
"scheme": "bearer",
"type": "http"
}
}
},
"openapi": "3.1.0",
"paths": {
"/v1/biz/members/{user_id}:assign-seat": {
"post": {
"description": "Assign a seat to a frozen organization member, changing their status to active. user_id is the member UUID. No request body is required.\n\nThe application requires biz.seat.manage authorization, and the operator requires seat management permission. The member must be within their management scope. Insufficient organization seats cause a business conflict. Members in pending or removed status and digital employees that do not require seats return the corresponding errors.\n\nSuccess returns the updated member profile. If the member is already active, repeated calls return the current profile.",
"operationId": "biz-assign-member-seat",
"parameters": [
{
"description": "Target member UUID",
"in": "path",
"name": "user_id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"example": {
"biz_org_id": "00000000-0000-4000-8000-000000000002",
"biz_team_id": "00000000-0000-4000-8000-000000000003",
"blocked": false,
"dingtalk_uid": null,
"email": "member@example.com",
"first_name": "示例成员",
"last_name": "",
"phone_number": null,
"status": "active",
"user_id": "00000000-0000-4000-8000-000000000001",
"username": "example-member"
},
"schema": {
"$ref": "#/components/schemas/MemberLookupRead"
}
}
},
"description": "Member seat assigned successfully.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "The request or operator identity profile does not meet business requirements. primary_contact_phone_required / primary_contact_email_required means both phone number and email are missing. Complete the profile before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Missing or invalid token. Check the organization-authorized access token.",
"headers": {
"WWW-Authenticate": {
"schema": {
"type": "string"
}
},
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Scope, operator permission, or organization/team scope checks failed. Verify the target member's scope and organization authorization.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "The target member does not exist. Verify the member identifier and authorization scope.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"405": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Method Not Allowed",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"409": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "org_seat_count_reached means insufficient capacity; member_seat_exempt means the digital employee does not occupy a seat; seat_request_member_not_frozen means the member's status does not support the operation; enterprise_seat_lock_busy means seat operations are busy. Check capacity and status before proceeding.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"413": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Request Entity Too Large",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"415": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Unsupported Media Type",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"422": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ValidationErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Too Many Requests",
"headers": {
"Retry-After": {
"description": "Seconds to wait before retrying.",
"schema": {
"type": "string"
}
},
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"502": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"503": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service temporarily unavailable. For writes, verify the actual outcome before retrying. seat_projection_refresh_busy means the lock for refreshing expired capacity is busy. No new allocation is made in this attempt; retry is allowed.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"504": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
}
},
"security": [
{
"OpenPlatformBearer": []
}
],
"summary": "Assign a member seat",
"tags": [
"席位"
]
}
}
},
"info": {
"title": "Assign a member seat",
"version": "2026-11-24"
},
"servers": [
{
"url": "https://openapi.qwenwork.ai"
}
]
}