---
title: "assign roles"
method: PUT
path: "/assign-roles"
tags: ["roles"]
---

# assign roles

`PUT /assign-roles`

## Request body

- object
  - `authId` string, required
  - `role` string[], required

## Response `200`

assign roles is success

## Other responses

- `400` — assign roles is failed

## Changes

- **2026-07-17** `d1ec4100a3ee` — 1 info
  - endpoint added
- **2022-04-12** `abbac25b5edd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/changes/assign-roles/put.md)

---

[API](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation.md) · [All operations](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wednesday-solutions/node-mongo-express-documentation/revisions/d1ec4100a3ee/schema)
