# createDeployment

```graphql
mutation CreateDeployment($input: CreateDeploymentInput!) {
  createDeployment(input: $input) {
    deployment {
      id
      releaseId
      environmentId
      userId
      createdAt
      updatedAt
    }
  }
}
```

Create a deployment. Requires project.deploy.execute.

## Arguments

| Name                  | Type                   | Required | Description |
| --------------------- | ---------------------- | -------- | ----------- |
| `input`               | CreateDeploymentInput! | Yes      |             |
| `input.releaseId`     | ID!                    | Yes      |             |
| `input.environmentId` | ID!                    | Yes      |             |

## Variables

```json
{
  "input": {
    "releaseId": "string",
    "environmentId": "string"
  }
}
```

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The CreateDeploymentPayload in data.createDeployment. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateDeployment($input: CreateDeploymentInput!) {\n  createDeployment(input: $input) {\n    deployment {\n      id\n      releaseId\n      environmentId\n      userId\n      createdAt\n      updatedAt\n    }\n  }\n}",
  "variables": {
    "input": {
      "releaseId": "string",
      "environmentId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "createDeployment": {
      "deployment": {
        "id": "string",
        "releaseId": "string",
        "environmentId": "string",
        "userId": "string",
        "createdAt": "2026-01-01T00:00:00Z",
        "updatedAt": "2026-01-01T00:00:00Z"
      }
    }
  }
}
```
