---
title: "Add a role"
method: POST
path: "/roles"
tags: ["Roles"]
---

# Add a role

`POST /roles`

Adds a new role.

## Request body

- object — The details of the role
  - `name` string, required — The name of the role
  - `parent_role_id` integer, nullable — The ID of the parent role

## Response `200`

Add a role

- object
  - `success` boolean — If the response is successful or not
  - `data` object — The response data
    - `id` integer — The ID of the created role

---

[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/revisions/bf863a979545/schema)
