POST /api/v1/users/permissions/remove — Remove User Permissions
Removes permissions from an existing user.
Authentication
SadqAuthorize
Request Headers
- Authorization (required)
- Bearer {token}
- Content-Type (required)
- application/json
Request Body
Content-Type: application/json
- userId (string, required)
- The unique identifier of the user.
- permissions (array, required)
- Array of permission IDs to remove from the user.
{
"userId": "e96ed7d6-60e3-4faf-a7d5-5ba5f860bb1a",
"permissions": [
3,
7
]
}Responses
HTTP 200 — Permissions removed
{
"data": true,
"errorCode": 0,
"message": "Permissions removed successfully",
"returnUrl": "/dashboard",
"stateValidationErrors": null,
"signature": ""
}