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

# POST /roleAssignments:bulkcreate

`POST /roleAssignments:bulkcreate`

## Request

- Base URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0`
- URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0/roleAssignments:bulkcreate`
- Auth: HTTP bearer

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.dev/eagleeyenetworks/apis/user-accounts.md) - [All operations](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/revisions/e6bfa6544945?raw)
