PATCH /api/roles//activate
Activates a role that was previously deactivated. Once activated, the role can be assigned to users and its permissions will take effect.Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header.Path Parameters
The unique identifier of the role to activate
Response
This endpoint returns204 No Content on success with an empty response body.
Error Responses
- 404 Not Found: Role with the specified ID does not exist
- 500 Internal Server Error: Unexpected server error
Example Request
Example Success Response
Example Error Response
Usage Notes
- Activating a role that is already active has no effect
- After activation, the role’s status will be set to
ACTIVE - Users with this role will immediately gain access to its associated permissions
- This action is logged in the audit trail with action type
ACTIVAR_ROL