Create a role (admin-only). Implements POST /roles as specified in SPEC.md Section 3.4.
Documentation Index
Fetch the complete documentation index at: https://docs.dados.rio/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for creating a new role.
Unique name for the role (lowercase letters, numbers, underscores, and colons only)
1 - 100^[a-z0-9_:]+$"data_analyst:read"
Human-readable description of the role's purpose and permissions
1 - 500"Data analysts with read access to analytics dashboards"
Successful Response
Response model for role information.
Unique identifier for the role
1
Role name
"data_analyst:read"
Role description
"Data analysts with read access to analytics dashboards"
CPF of the user who created this role (null for system roles)
"12345678901"
ISO timestamp when the role was created (null for system roles)
"2024-01-15T10:30:00Z"