# createRelease

```graphql
mutation CreateRelease($input: CreateReleaseInput!) {
  createRelease(input: $input) {
    id
    name
    version
    projectId
    userId
    exportOutcome
    buildOutcome
    deployOutcome
    createdAt
    updatedAt
    assetManifest {
      state
      manifestVersion
    }
  }
}
```

Create a release. Requires project.releases.write.

## Arguments

| Name                     | Type                | Required | Description |
| ------------------------ | ------------------- | -------- | ----------- |
| `input`                  | CreateReleaseInput! | Yes      |             |
| `input.name`             | String              |          |             |
| `input.projectReference` | String              |          |             |
| `input.branchReference`  | String              |          |             |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The CreateReleasePayload in data.createRelease. |

## 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 CreateRelease($input: CreateReleaseInput!) {\n  createRelease(input: $input) {\n    id\n    name\n    version\n    projectId\n    userId\n    exportOutcome\n    buildOutcome\n    deployOutcome\n    createdAt\n    updatedAt\n    assetManifest {\n      state\n      manifestVersion\n    }\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "createRelease": {
      "id": "string",
      "name": "string",
      "version": "string",
      "projectId": "string",
      "userId": "string",
      "exportOutcome": "in_progress",
      "buildOutcome": "in_progress",
      "deployOutcome": "in_progress",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z",
      "assetManifest": {
        "state": "queued",
        "manifestVersion": 0
      }
    }
  }
}
```
