---
title: "Create an org group policy override"
method: POST
path: "/api/v2/org_group_policy_overrides"
tags: ["Org Groups"]
---

# Create an org group policy override

`POST /api/v2/org_group_policy_overrides`

## Request

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

Create a new policy override for an organization within an org group.

## Request body

- OrgGroupPolicyOverrideCreateRequest: Request to create an org group policy override.
  - `data` OrgGroupPolicyOverrideCreateData, required: Data for creating an org group policy override.
    - `attributes` OrgGroupPolicyOverrideCreateAttributes, required: Attributes for creating a policy override.
      - `org_site` string, required: The site of the organization.
      - `org_uuid` string, uuid, required: The UUID of the organization to grant the override.
    - `relationships` OrgGroupPolicyOverrideCreateRelationships, required: Relationships for creating a policy override.
      - `org_group` OrgGroupRelationshipToOne, required: Relationship to a single org group.
        - `data` OrgGroupRelationshipToOneData, required: A reference to an org group.
          - `id` string, uuid, required: The ID of the org group.
          - `type` 'org_groups', required: Org groups resource type.
      - `org_group_policy` OrgGroupPolicyRelationshipToOne, required: Relationship to a single org group policy.
        - `data` OrgGroupPolicyRelationshipToOneData, required: A reference to an org group policy.
          - `id` string, uuid, required: The ID of the policy.
          - `type` 'org_group_policies', required: Org group policies resource type.
    - `type` 'org_group_policy_overrides', required: Org group policy overrides resource type.

## Response `201`

Created

- OrgGroupPolicyOverrideResponse: Response containing a single org group policy override.
  - `data` OrgGroupPolicyOverrideData, required: An org group policy override resource.
    - `attributes` OrgGroupPolicyOverrideAttributes, required: Attributes of an org group policy override.
      - `content` object: The override content as key-value pairs.
      - `created_at` string, date-time, required: Timestamp when the override was created.
      - `modified_at` string, date-time, required: Timestamp when the override was last modified.
      - `org_site` string, required: The site of the organization that has the override.
      - `org_uuid` string, uuid, required: The UUID of the organization that has the override.
    - `id` string, uuid, required: The ID of the policy override.
    - `relationships` OrgGroupPolicyOverrideRelationships: Relationships of an org group policy override.
      - `org_group` OrgGroupRelationshipToOne: Relationship to a single org group.
        - `data` OrgGroupRelationshipToOneData, required: A reference to an org group.
          - `id` string, uuid, required: The ID of the org group.
          - `type` 'org_groups', required: Org groups resource type.
      - `org_group_policy` OrgGroupPolicyRelationshipToOne: Relationship to a single org group policy.
        - `data` OrgGroupPolicyRelationshipToOneData, required: A reference to an org group policy.
          - `id` string, uuid, required: The ID of the policy.
          - `type` 'org_group_policies', required: Org group policies resource type.
    - `type` 'org_group_policy_overrides', required: Org group policy overrides resource type.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `409`: Conflict
- `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)
