PATCH /api/permissions//deactivate
Deactivates an active permission, preventing it from being assigned to new roles. Existing role assignments may be preserved depending on system configuration.Authentication
This endpoint requires authentication with a valid Bearer token.Path Parameters
The unique identifier of the permission to deactivate
Response
This endpoint returns no content on success (HTTP 204).Status Codes
- 204 No Content - Permission deactivated successfully
- 404 Not Found - Permission with the specified ID not found
- 500 Internal Server Error - Server error occurred
Example Request
Example Response
Successful deactivation returns HTTP 204 with no body.Error Response
Audit Log
This operation is automatically logged in the system audit trail with:- Module: PERMISOS
- Action: DESACTIVAR_PERMISO