---
title: "Add role assignment"
method: POST
path: "/roles/{id}/assignments"
tags: ["Roles"]
---

# Add role assignment

`POST /roles/{id}/assignments`

Assigns a user to a role.

## Path parameters

- `id` integer, required

## Request body

- object
  - `user_id` integer, required — The ID of the user

## Response `200`

Add assignment for a role

- object
  - `success` boolean — If the response is successful or not
  - `data` object — The response data
    - `user_id` integer — The ID of the user that was added to the role
    - `role_id` integer — The ID of the role the user was added to

---

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