Skip to main content
Version: v22.07

更新第三方账号状态

接口概述#

  • 功能:禁用、恢复账号
  • 请求方式:POST
  • 请求地址:/api/sso/users/{openid}/status

请求参数#

参数名类型参数位置描述示例值
openidstringuri第三方创建用户时传入的用户标识,用于辨别来自该第三方应用/平台的用户c12ba6e8606d11eba20cf64d5fc81bbe
actionstringbody执行操作:restrict(禁止使用编辑端)、lock(禁用账号)、restore(恢复正常状态)restrict

响应参数#

请求示例#

POST /api/sso/users/c12ba6e8606d11eba20cf64d5fc81bbe/status

{    "action":"downgrade"}

响应示例#

{    "code": "OK",    "error": {        "type": ""    },    "data": {},    "request_id": "d84e884b-3bc5-419d-9cc0-d6d6d14e68b6"}

错误码#

error.type 错误代码错误描述
user_not_found找不到用户
invalid_action操作错误