> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# createRole

GraphQL MUTATION

Creates a new role in the current user's active organization.

Reference: https://docs.credal.com/api-reference/mutations/create-role

## GraphQL Schema

```graphql
mutation ExampleMutation($request: CreateRoleRequest!) {
  createRole(request: $request)
}
```

## Variables

```json
{
  "request": {
    "displayName": "example",
    "allowActions": [
      "AGENT_ADMIN"
    ]
  }
}
```