Skip to content

吊销访问码

POST/web/v1/workspaces/{workspaceId}/institutions/{institutionBizId}/portals/portal-types/{portalType}/access-code/revokeWEB

吊销指定 Portal 类型的访问码。吊销后,该访问码将无法再用于认证。

鉴权

需要有效的 JWT token。网关验证:enableJwtToken=trueenableTurnstile=false

请求参数

路径参数

NameTypeRequiredInDescription
workspaceIdstringYespath工作空间业务 ID
institutionBizIdstringYespath机构业务 ID
portalTypeintegerYespathPortal 类型代码(例如:10010101=system、10010102=tenant)

成功响应

成功200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": null
}

错误响应

错误码描述
4010未授权(无效或缺少 JWT token)
4040Portal 或访问码未找到

说明

  • 此操作不可逆。吊销后必须重新生成访问码。
  • 主访问码和轮转码(如有)均会被吊销。

内部文档