# Batch delete role member authorizations

Batch delete role member authorizations

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member/batch_remove_authorization
HTTP Method | POST
Rate Limit | [100 per minute](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.** | Edit users assigned to role(app_engine:role.member:write)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Path parameters

Parameter | Type | Description
---|---|---
namespace | string | **Example value**: "package_test__c"<br>**Data validation rules**:<br>- Length range: `0` ～ `255` characters
role_api_name | string | Role API name<br>**Example value**: "adminRole"<br>**Data validation rules**:<br>- Length range: `0` ～ `255` characters

### Request body

Parameter | Type | Required | Description
---|---|---|---
user_ids | string\[\] | No | List of user IDs to be deleted, using user IDs of the Feishu aPaaS.<br>**Example value**: ["1802412778084426"]<br>**Data validation rules**:<br>- Length range: `0` ～ `1000`
department_ids | string\[\] | No | List of department IDs to be deleted, using department IDs of the Feishu aPaaS.<br>**Example value**: ["1802412778084426"]<br>**Data validation rules**:<br>- Length range: `0` ～ `1000`

### Request body example
```json
{
    "user_ids": [
        "1802412778084426"
    ],
    "department_ids": [
        "1802412778084426"
    ]
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {}
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
400 | 2320001 | param is invalid | Please check the input parameters.

