Skip to main content

Revoke a member seat

Requirements, permissions, request and response fields, and error handling.

Request and permissions

POST https://openapi.qwenwork.ai/v1/biz/members/{user_id}:revoke-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

Revoke an organization member's seat, changing their status from active to frozen. 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. Members in pending or removed status and digital employees that do not require seats return the corresponding errors. Success returns the member profile. If the member is already frozen, repeated calls return the current profile. This operation changes only the seat and member status; blocked remains unchanged.

Path parameters

ParameterTypeRequiredDescription and constraints
user_idstringYesTarget 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 common code/msg/data wrapper.

HTTP 200

Member seat revoked successfully. Response type: application/json
{
  "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": "frozen",
  "user_id": "00000000-0000-4000-8000-000000000001",
  "username": "example-member"
}
FieldTypeRequiredDescription and constraints
biz_org_idstringYes—
biz_team_idstringYes—
blockedbooleanYes—
dingtalk_uidstring | nullYes—
emailstring | nullYes—
first_namestringYes—
last_namestringYes—
phone_numberstring | nullYes—
statusstringYes—
user_idstringYes—
usernamestringYes—

Error responses

HTTPDescription and handling
400The 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.
401Missing or invalid token. Check the organization-authorized access token.
403Scope, operator permission, or organization/team scope checks failed. Verify the target member's scope and organization authorization.
404The target member does not exist. Verify the member identifier and authorization scope.
405Method Not Allowed
409member_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 the member's status before proceeding.
413Request Entity Too Large
415Unsupported Media Type
422Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail.
429Too Many Requests
500Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.
502Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.
503Biz service temporarily unavailable. For writes, verify the actual outcome before retrying.
504Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying.
Retain the request ID and error fields from the response for troubleshooting. A write operation may have taken effect even after a timeout or disconnection. Do not automatically retry solely because no success response was received.

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.
{
  "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}:revoke-seat": {
      "post": {
        "description": "Revoke an organization member's seat, changing their status from active to frozen. 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. Members in pending or removed status and digital employees that do not require seats return the corresponding errors.\n\nSuccess returns the member profile. If the member is already frozen, repeated calls return the current profile. This operation changes only the seat and member status; blocked remains unchanged.",
        "operationId": "biz-revoke-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": "frozen",
                  "user_id": "00000000-0000-4000-8000-000000000001",
                  "username": "example-member"
                },
                "schema": {
                  "$ref": "#/components/schemas/MemberLookupRead"
                }
              }
            },
            "description": "Member seat revoked 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": "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 the member's 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.",
            "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": "Revoke a member seat",
        "tags": [
          "席位"
        ]
      }
    }
  },
  "info": {
    "title": "Revoke a member seat",
    "version": "2026-11-24"
  },
  "servers": [
    {
      "url": "https://openapi.qwenwork.ai"
    }
  ]
}
Back to the OpenAPI overview.