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

# Create an org group policy

`POST /api/v2/org_group_policies`

Create a new policy for an organization group.

## Request body

- OrgGroupPolicyCreateRequest — Request to create an org group policy.
  - `data` OrgGroupPolicyCreateData, required — Data for creating an org group policy.
    - `attributes` OrgGroupPolicyCreateAttributes, required — Attributes for creating an org group policy. If `policy_type` or `enforcement_tier` are not provided, they default to `org_config` and `DEFAULT` respectively.
      - `content` object, required — The policy content as key-value pairs.
      - `enforcement_tier` 'OVERRIDE_ALLOWED' | 'GROUP_MANAGED' | 'DELEGATE' — The enforcement tier of the policy. `OVERRIDE_ALLOWED` means the policy is set but member orgs may mutate it. `GROUP_MANAGED` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
      - `policy_name` string, required — The name of the policy.
      - `policy_type` 'org_config' — The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting.
    - `relationships` OrgGroupPolicyCreateRelationships, required — Relationships for creating a policy.
      - `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.
    - `type` 'org_group_policies', required — Org group policies resource type.

## Response `201`

Created

- OrgGroupPolicyResponse — Response containing a single org group policy.
  - `data` OrgGroupPolicyData, required — An org group policy resource.
    - `attributes` OrgGroupPolicyAttributes, required — Attributes of an org group policy.
      - `content` object — The policy content as key-value pairs.
      - `enforcement_tier` 'OVERRIDE_ALLOWED' | 'GROUP_MANAGED' | 'DELEGATE', required — The enforcement tier of the policy. `OVERRIDE_ALLOWED` means the policy is set but member orgs may mutate it. `GROUP_MANAGED` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
      - `modified_at` string, date-time, required — Timestamp when the policy was last modified.
      - `policy_name` string, required — The name of the policy.
      - `policy_type` 'org_config', required — The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting.
    - `id` string, uuid, required — The ID of the org group policy.
    - `relationships` OrgGroupPolicyRelationships — Relationships of an org group policy.
      - `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.
    - `type` 'org_group_policies', required — Org group policies resource type.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `429` — Too many requests

---

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