---
title: "Update an org group"
method: PATCH
path: "/api/v2/org_groups/{org_group_id}"
tags: ["Org Groups"]
---

# Update an org group

`PATCH /api/v2/org_groups/{org_group_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/org_groups/{org_group_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update the name of an existing organization group.

## Path parameters

- `org_group_id` string, uuid, required

## Request body

- OrgGroupUpdateRequest: Request to update an org group.
  - `data` OrgGroupUpdateData, required: Data for updating an org group.
    - `attributes` OrgGroupUpdateAttributes, required: Attributes for updating an org group.
      - `name` string, required: The name of the org group.
    - `id` string, uuid, required: The ID of the org group.
    - `type` 'org_groups', required: Org groups resource type.

## Response `200`

OK

- OrgGroupResponse: Response containing a single org group.
  - `data` OrgGroupData, required: An org group resource.
    - `attributes` OrgGroupAttributes, required: Attributes of an org group.
      - `created_at` string, date-time, required: Timestamp when the org group was created.
      - `modified_at` string, date-time, required: Timestamp when the org group was last modified.
      - `name` string, required: The name of the org group.
      - `owner_org_site` string, required: The site of the organization that owns this org group.
      - `owner_org_uuid` string, uuid, required: The UUID of the organization that owns this org group.
    - `id` string, uuid, required: The ID of the org group.
    - `type` 'org_groups', required: Org groups resource type.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
