---
title: "Create One Custom Role"
method: POST
path: "/api/atlas/v2/groups/{groupId}/customDBRoles/roles"
tags: ["Custom Database Roles"]
---

# Create One Custom Role

`POST /api/atlas/v2/groups/{groupId}/customDBRoles/roles`

Creates one custom role in the specified project.

## Path parameters

- `groupId` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `202`

Accepted

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `409` — Conflict.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

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