Use this endpoint to revoke a user's access to an ad account under an organization. This removes only the user's ad-account-level role; any organization-level role is left unchanged.
Request
End Point https://business.newsbreak.com/business-api/v1/ad-account/deleteUser
Method POST
Header
| Field | Required | Data Type | Description |
|---|---|---|---|
| Access-Token | Y | string | Authorized access token. |
Request Parameters
| Field | Required | Data Type | Description |
|---|---|---|---|
| orgId | Y | string | ID of the organization the ad account belongs to. |
| adAccountId | Y | string | ID of the ad account to revoke access from. Must belong to orgId. |
| userId | Y | string | ID of the user whose ad-account access is being removed. |
Example
curl --location --request POST 'https://business.newsbreak.com/business-api/v1/ad-account/deleteUser' \
-H 'Content-Type: application/json' \
-H 'Access-Token:{{Access-Token}}' \
-d '{
"orgId": "123456789",
"adAccountId": "987654321",
"userId": "1122334455"
}'
Response
Response Parameters
| Field | Data Type | Description |
|---|---|---|
| code | int | Status code, see Return Codes. |
| errMsg | string | Error message when code!=0. |
| data | object | Response object. Empty on success. |
Example
{
"code": 0
}