POST /api/permissions
Creates a new permission and registers it in the system. Permissions define granular access rights that can be assigned to roles.Authentication
This endpoint requires authentication with a valid Bearer token.Request Body
The name of the permission. Must be unique and cannot exceed 100 characters.
Optional description of the permission. Maximum 200 characters.
Response
Unique identifier for the created permission
The name of the permission
Description of the permission
Current status of the permission (e.g., “ACTIVE”, “INACTIVE”)
Status Codes
- 201 Created - Permission created successfully
- 400 Bad Request - Invalid input data or validation errors
- 404 Not Found - Referenced module not found
- 500 Internal Server Error - Server error occurred