---
title: "Create role bindings"
method: POST
path: "/roles/bindings"
tags: ["Roles"]
---

# Create role bindings

`POST /roles/bindings`

## Request

- Base URL: `https://public.escape.tech/v3`
- URL: `https://public.escape.tech/v3/roles/bindings`
- Auth: API key in header `X-ESCAPE-API-KEY`

Create role bindings.

## Request body

- object
  - `bindings` object[], required: The role bindings to create
    - `roleId` string, uuid, required: The role ID
    - `projectId` string, uuid, nullable: The project ID
    - `userId` string, uuid, required: The user ID

## Response `200`

OK

- object[]: The created role bindings
  - `id` string, uuid, required: The id of the role binding
  - `userId` string, uuid, required: The id of the user
  - `projectId` string, uuid, required: The id of the project
  - `roleId` string, uuid, required: The id of the role

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/escape/apis/escape-public-api.md) - [All operations](https://skmtc.dev/escape/apis/escape-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/escape/apis/escape-public-api/revisions/2eab35df40c7?raw)
