POST

Permissions.Remove

Remove custom permissions from a team member. Only the owner or a manager can call this method. It clears permission JSON, folder visibility, folder permissions, and manager flag.

Permissions

  • Only the organization owner or a manager can call this route.

Action

  • Removes the requested Permissions record when the user has permission.

Push Service

Pushes event permissions.remove.deleted to users who should see this change.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.

Required Parameters

NameTypeSampleExplanation
team_member_id
post
int321Team member id. Aliases: member_id, user_id, id.

Optional Parameters

No optional body parameters are defined for this function.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Permissions.Remove",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "team_member_id": "321"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Permissions.Remove",
    "url_domain": "https:\/\/{domain}\/app\/Permissions.Remove"
}

Endpoint

POST /app/Permissions.Remove
POST https://{user}.bull36.com/app/Permissions.Remove
POST https://{domain}/app/Permissions.Remove

Sample Output

{
    "success": 1,
    "message": "Permissions removed",
    "team_member_id": "321",
    "socket_event": "permissions.remove.deleted",
    "automation_event": null
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ team_member_id: '321' });

const res = await fetch('/app/Permissions.Remove', { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "error": "permission_denied",
    "message": "Permission denied to manage this resource"
}