Demote a publisher account admin
DELETE /publishers/{publisher_id}/account_admins/{user_id}
DELETE /publishers/{publisher_id}/account_admins/{user_id}
Operation
DELETE
/publishers/{publisher_id}/account_admins/{user_id}
Removes the AccountAdmin record tying the user to the publisher. Same authorization rules as promote.
Operation ID:
removePublisherAccountAdmin
·
Tags: Publishers
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
publisher_id
|
path | Yes | string | — |
user_id
|
path | Yes | integer | — |
Request Body
No request body is defined for this operation.
Responses
Content Types
application/json
{
"description": "Account admin removed",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublisherAccountAdmin"
}
}
}
}
{
"$ref": "#/components/responses/Unauthorized"
}
{
"$ref": "#/components/responses/Forbidden"
}
{
"$ref": "#/components/responses/NotFound"
}
Content Types
application/json
{
"description": "User is not an account admin for this publisher",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
API Playground
The in-page tester only supports GET. For DELETE, use the sample curl below or the dedicated resource docs (e.g. Contacts, Link Builder).
Sign in to enable live testing with your API key.
| Action | Method | Endpoint | Description |
|---|---|---|---|
| Demote a publisher account admin | DELETE |
/api/v1/publishers/1/account_admins/1 |
OpenAPI operationId: removePublisherAccountAdmin. |
Example request (replace YOUR_API_KEY or sign in above):
curl -X DELETE "https://app.hienergy.ai/api/v1/publishers/1/account_admins/1" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Accept: application/json"