DeleteManager¶
Description: Deletes a manager account by ID. A brand admin may delete only a non-super manager in the same brand; a super admin may delete managers across brands.
Access Control¶
š”ļø Access Level Required:
SESSION_ADMINorSESSION_MANAGER
System managers id=1 (hidden recovery) and id=2 (default super admin) cannot be deleted.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| id | int | Yes | ID of the manager to delete |
Request Example¶
{
"id": 42
}
Response Example¶
{
"data": "OK"
}
ā ļø If the deletion fails or the ID does not exist, an error response will be returned:
{ "error": "DELETE_MANAGER_ERROR" }