---
title: "Put Update a Base Role"
method: PUT
path: "/base-roles/{id}/"
---

# Put Update a Base Role

`PUT /base-roles/{id}/`

Used to replace existing permissions in a base role to a new set of permissions, and also update name/key of the base role

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — new name for the base role
  - `description` string — new description for the base role
  - `key` string — new key for the base role
  - `permission_ids` string[] — Array of permission_ids to be added to the base role
  - `permission_keys` string[] — Array of permission_keys to be added to the base role
  - `role_template_id` string — id of the role template, permissions of which need to be added to the base role
  - `role_template_key` string — key of the role template, permissions of which need to be added to the base role
  - `is_active` boolean — Active status for the base role

## Response `200`

200

- object
  - `id` string
  - `url` string
  - `client_id` string
  - `name` string
  - `description` string
  - `key` string
  - `permissions` object[]
    - `id` string
    - `url` string
    - `name` string
    - `description` string
    - `key` string
    - `created_at` string
  - `created_at` string
  - `is_active` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
