接口描述
请求方式:
POST请求地址:
https://api.account.tencent.com/openapi/v3/contacts/users/batch_disable本接口用于批量停用用户。
输入参数
请求头
名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
请求体参数
参数名称 | 类型 | 必选 | 描述 |
union_ids | array[string] | 是 | 用户 union_id 列表,1 - 100 个。 示例值:["13579**************24"] |
输出参数
参数名称 | 类型 | 描述 |
trace_id | string | 唯一请求 ID |
data | - | 在该接口中,无论调用成功与否,data 均返回 null |
示例
输入示例
POST https://api.account.tencent.com/openapi/v3/contacts/users/batch_disableAuthorization: Bearer {access_token}Content-Type: application/json; charset=utf-8{"union_ids": ["13579**************24"]}
输出示例
成功示例
{"code": 0,"msg": "ok","data": null,"trace_id": "ae4bd3d6d939f7790fa354e2402450e0"}
失败示例
{"code": 10030,"msg": "批量处理用户数不能超过100个","data": null}
错误码
说明:
错误码 | 描述 |
200001 | 用户不存在 |
200023 | 当前用户已被删除/未激活 |
200035 | 软删除错误 |
10030 | 参数不正确(数量超过 100 个) |