---
title: "assignRoles"
method: PUT
path: "/v1/permissions/assignments/{userId}"
tags: ["Assignments"]
---

# assignRoles

`PUT /v1/permissions/assignments/{userId}`

Assign / unassign roles to users.

## Path parameters

- `userId` string, required — Id of a user

## Request body

- RoleId[] — List of role ids attached to an user

## Response `200`

ok

- RoleId[] — List of role ids attached to an user

---

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