---
title: "Create deployment gate"
method: POST
path: "/api/v2/deployment_gates"
tags: ["Deployment Gates"]
---

# Create deployment gate

`POST /api/v2/deployment_gates`

Endpoint to create a deployment gate.

## Request body

- CreateDeploymentGateParams — Parameters for creating a deployment gate.
  - `data` CreateDeploymentGateParamsData, required — Parameters for creating a deployment gate.
    - `attributes` CreateDeploymentGateParamsDataAttributes, required — Parameters for creating a deployment gate.
      - `dry_run` boolean — Whether this gate is run in dry-run mode.
      - `env` string, required — The environment of the deployment gate.
      - `identifier` string — The identifier of the deployment gate.
      - `service` string, required — The service of the deployment gate.
    - `type` 'deployment_gate', required — Deployment gate resource type.

## Response `200`

OK

- DeploymentGateResponse — Response for a deployment gate.
  - `data` DeploymentGateResponseData — Data for a deployment gate.
    - `attributes` DeploymentGateResponseDataAttributes, required — Basic information about a deployment gate.
      - `created_at` string, date-time, required — The timestamp when the deployment gate was created.
      - `created_by` DeploymentGateResponseDataAttributesCreatedBy, required — Information about the user who created the deployment gate.
        - `handle` string — The handle of the user who created the deployment rule.
        - `id` string, required — The ID of the user who created the deployment rule.
        - `name` string — The name of the user who created the deployment rule.
      - `dry_run` boolean, required — Whether this gate is run in dry-run mode.
      - `env` string, required — The environment of the deployment gate.
      - `identifier` string, required — The identifier of the deployment gate.
      - `service` string, required — The service of the deployment gate.
      - `updated_at` string, date-time — The timestamp when the deployment gate was last updated.
      - `updated_by` DeploymentGateResponseDataAttributesUpdatedBy — Information about the user who updated the deployment gate.
        - `handle` string — The handle of the user who updated the deployment rule.
        - `id` string, required — The ID of the user who updated the deployment rule.
        - `name` string — The name of the user who updated the deployment rule.
    - `id` string, required — Unique identifier of the deployment gate.
    - `type` 'deployment_gate', required — Deployment gate resource type.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too many requests
- `500` — Internal Server Error

---

[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)
