---
title: "Modifies components on an existed User Role by provided Role ID and relevant information in the request body"
method: PUT
path: "/role/{id}/component"
tags: ["User Role(Group)"]
---

# Modifies components on an existed User Role by provided Role ID and relevant information in the request body

`PUT /role/{id}/component`

## Path parameters

- `id` integer, required

## Request body

- UserRoleResource
  - `groupId` integer
  - `name` string
  - `description` string
  - `icon` string
  - `components` ComponentResource[]
    - `componentId` integer
    - `name` string
    - `permissions` string[]

## Response `200`

Components of User Role has been successfully modified

- UserRoleResource
  - `groupId` integer
  - `name` string
  - `description` string
  - `icon` string
  - `components` ComponentResource[]
    - `componentId` integer
    - `name` string
    - `permissions` string[]

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

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