List all permissions.
Only superadmins can list permissions.
Args: current_user: Authenticated superadmin user. session: Database session.
Returns: List of all permissions.
cURL
curl --request GET \ --url https://api.example.com/api/v1/permissions
{ "items": [ { "id": 123, "role_id": 123, "collection": "<string>", "rules": { "create": { "rule": "<string>", "fields": "*" }, "read": { "rule": "<string>", "fields": "*" }, "update": { "rule": "<string>", "fields": "*" }, "delete": { "rule": "<string>", "fields": "*" } }, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "total": 123 }
Successful Response
Response schema for listing permissions.
Attributes: items: List of permissions. total: Total number of permissions.
Show child attributes