更新第三方账号状态
#
接口概述- 功能:禁用、恢复账号
- 请求方式:POST
- 请求地址:/api/sso/users/{openid}/status
#
请求参数参数名 | 类型 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|
openid | string | uri | 第三方创建用户时传入的用户标识,用于辨别来自该第三方应用/平台的用户 | c12ba6e8606d11eba20cf64d5fc81bbe |
action | string | body | 执行操作: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 | 操作错误 |