GET /api/v1/permissions
List all available permissions or resolve the current user’s effective permissions.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | No | list to list all permissions, resolve to get current user’s permissions (default: resolve) |
Response — resolve
Response — list
POST /api/v1/permissions
Assign a custom role to a user. Admin only.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | User ID to assign the role to |
roleId | string | Yes | Custom role ID |