---
title: "Update Role"
method: POST
path: "/v1/permissions/sync"
---

# Update Role

`POST /v1/permissions/sync`

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `role_id` string, required — ID of the role to be updated.
  - `permissions_ids` string[], required — IDs of the permissions for the updated role. To obtain available IDs, execute a GET request at the /v1/permissions endpoint.

## Response `200`

200

- object
  - `data` object
    - `object` string
    - `id` string
    - `name` string
    - `description` string
    - `display_name` string
    - `level` integer
    - `created_at` integer
    - `permissions` object
      - `data` object[]
        - `object` string
        - `id` string
        - `name` string
        - `description` string
        - `display_name` string
        - `permission_type` string
  - `meta` object
    - `include` unknown[]
      - unknown
    - `custom` unknown[]
      - unknown

## Other responses

- `422` — 422

---

[API](https://skmtc.net/payarc/apis/payarc-sandbox.md) · [All operations](https://skmtc.net/payarc/apis/payarc-sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payarc/payarc-sandbox/versions/face82bdd778/schema)
