On this page6 sections
POST/api/roles/delete-rolesRolesPermission: roles.delete
Delete Roles
Deletes one or more custom non-system roles within the active tenant.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
idsarray<string (uuid)>required
ids parameter.
Responses
Select a status code to inspect schema.
OK — Roles deleted.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/roles/delete-roles
curl -X POST "https://api.invoger.com/api/roles/delete-roles" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "ids": [ "r2b3c4d5-e6f7-8a9b-0c1d-2e3f4a5b6c7d" ] }'Interactive playground
Response
application/json
{
"success": true,
"message": "Success",
"data": {
"success": true
}
}