permissions
Create Role
Create a new role.
This endpoint creates a new role with the specified name. Roles are used to group permissions and can be assigned to users to manage access control more efficiently. The authenticated user becomes the owner of the created role.
Request Parameters
- role_name (str): The name of the role to create
Response
Returns a success message indicating the role was created.
Error Codes
- 400 Bad Request: Invalid role name or role already exists
- 500 Internal Server Error: Error creating the role
POST
Create Role
Documentation Index
Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
Use this file to discover all available pages before exploring further.
Previous
Delete Role EndpointDelete a role and all its associations.
Removes all user-role memberships and ACL entries for this role,
then deletes the role. The authenticated user must be able to manage
users in the tenant.
## Path Parameters
- **role_id** (UUID): The UUID of the role to delete
Next
Create Role