SPB Git

Repository Public

retrieve.md 1.2 KB 71 lines markdown

1---2title: Get RBAC Role3url: https://platform.claude.com/docs/en/api/beta/organization/rbac_roles/retrieve4---56# Get RBAC Role78**GET** `/v1/organizations/rbac_roles/{role_id}`910Retrieve an RBAC Role by ID.1112The RBAC Roles API is available to Claude Enterprise organizations only.1314## Path parameters1516- `role_id: string`1718  ID of the RBAC Role.1920## Returns2122- `BetaRBACRole object`2324  - `type: "rbac_role"`2526    Object type.2728    For RBAC Roles, this is always `"rbac_role"`.2930    default: rbac_role3132  - `id: string`3334    ID of the RBAC Role.3536  - `created_at: string`3738    RFC 3339 datetime string indicating when the RBAC Role was created.3940    format: date-time4142  - `name: string`4344    Name of the RBAC Role.4546  - `updated_at: string`4748    RFC 3339 datetime string indicating when the RBAC Role was last updated.4950    format: date-time5152## Example5354```bash55curl https://api.anthropic.com/v1/organizations/rbac_roles/$ROLE_ID \56    -H 'anthropic-version: 2023-06-01' \57    -H "X-Api-Key: $ANTHROPIC_API_KEY"58```5960### Response (200)6162```json63{64  "id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",65  "created_at": "2024-10-30T23:58:27.427722Z",66  "name": "Project Editor",67  "type": "rbac_role",68  "updated_at": "2024-10-30T23:58:27.427722Z"69}70```71
Files main
Menu

Theme