---
title: "Creates a new resource group."
method: POST
path: "/accessmanagement/resourcegroups"
tags: ["accessmanagement - resource groups"]
---

# Creates a new resource group.

`POST /accessmanagement/resourcegroups`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/accessmanagement/resourcegroups`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/accessmanagement/resourcegroups/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint creates a new resource group, enabling users to organize resources based on specific criteria or access needs.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns a `400` error code with a clear description when requests fail.</br>- **Seamless resource group creation:** Facilitates the creation of a resource group in-line with the appropriate schema, ensuring smooth and efficient organization.

## Request body

- ResourceGroupUpdate
  - `name` string
  - `description` string

## Response `201`

Resource group created successfully.

- ResourceGroup
  - `id` integer
  - `name` string
  - `description` string
  - `canDelete` boolean
  - `canRename` boolean
  - `isDefault` boolean
  - `resourceCount` integer
  - `userGroupCount` integer
  - `userGroupSummary` ResourceGroupUserGroupSummary[]
    - `id` integer
    - `name` string
    - `roles` UserGroupRoles[]
      - `id` integer
      - `name` string
      - `description` string
      - `roleType` string
      - `isSystemRole` boolean
      - `canDelete` boolean
      - `canRename` boolean
      - `resourceGroupCount` integer
      - `userCount` integer
      - `modifiedTs` string, date-time
      - `createdTs` string, date-time

## Other responses

- `400`: Request is malformed or invalid.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
