Endpoint
Authentication
This endpoint requires a valid Dashboard JWT. Pass the token in theAuthorization header:
Request Body
The unique identifier of the role you want to delete. Use Fetch Roles to retrieve role IDs.
Delete a custom role from your Shogun account via the Dashboard API. Reassign any members using the role before calling this endpoint.
POST /api/v1/auth/web/delete_role
Authorization header:
Authorization: Bearer <access_token>
{
"status": true,
"response_code": "00",
"message": "Role deleted successfully",
"data": {}
}
curl -X POST https://baasapi.payrepmfb.com/api/v1/auth/web/delete_role \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"role_id": "r1b2c3d4-e5f6-7890-abcd-ef1234567890"
}'