移除普通成员并停用其Key

​

仅role=member目标。不可移除owner/admin/manager或企业创建者。保留历史数据,撤销待接受邀请和运行时访问。

所需权限:members:remove。使用绑定目标工作区的 OpenAPI Key,以 Authorization: Bearer <OpenAPI Key> 鉴权。

Path Parameters
  • id
    Type: string
    required

    目标资源外部ID;跨工作区目标不可访问。

Headers
  • Idempotency-Key
    Type: string
    min length:  
    1
    max length:  
    200
    required

    同一机器 Key、同一操作使用唯一请求号;重复同参数复用原结果,换参数返回409。最长200字节。

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for delete/v1/members/{id}
curl https://openapi.apigo.ai/v1/members/REPLACE_WITH_RESOURCE_ID \
  --request DELETE \
  --header 'Idempotency-Key: request-REPLACE-WITH-UNIQUE-ID' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "code": 0,
  "message": "string",
  "data": {
    "removed": true,
    "revoked_api_key_count": 0
  }
}