---
title: "POST /roleAssignments:bulkcreate"
method: POST
path: "/roleAssignments:bulkcreate"
tags: ["Roles"]
---

# POST /roleAssignments:bulkcreate

`POST /roleAssignments:bulkcreate`

This endpoint allows you to create multiple role assignments in one request.

## Request body

- object[]
  - `userId` string, required — The ID of the user.
  - `roleId` string, uuid, required — The ID of the role.

## Response `200`

Operations performed successfully

- object[]
  - `userId` string, required — The ID of the user.
  - `roleId` string, uuid, required — The ID of the role.
  - `status` integer, required — The response status of the operation.

## Other responses

- `400` — The supplied object is invalid. Error detail will contain the validation error.
- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `500` — Something went wrong in the server. Please try again.

---

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