---
title: "Load role by role ID"
method: GET
path: "/api/v1/roles/{roleid}"
tags: ["Roles"]
---

# Load role by role ID

`GET /api/v1/roles/{roleid}`

Load role based on the role id with optional children roles

## Path parameters

- `roleid` string, required

## Query parameters

- `loadChildrenRoles` boolean

## Response `200`

Role retrieved successfully

- ResponseEntityRoleDetailView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` RoleView
    - `id` string
    - `name` string
    - `description` string
    - `roleKey` string
    - `parent` string
    - `editPermissions` boolean
    - `editUsers` boolean
    - `editLayouts` boolean
    - `locked` boolean
    - `system` boolean
    - `dbfqn` string
    - `fqn` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request - invalid role ID
- `401` — Unauthorized - authentication required
- `403` — Forbidden - backend user required
- `404` — Role not found

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
