# Create release

```http
POST /projects/{project_reference}/releases
```

Create a release. Requires project.releases.write.

## Parameters

| Name                | In   | Required | Description |
| ------------------- | ---- | -------- | ----------- |
| `project_reference` | path | Yes      |             |

## Request body

| Field              | Type   | Required | Description                                                                       |
| ------------------ | ------ | -------- | --------------------------------------------------------------------------------- |
| `name`             | string |          | Name for the release. Auto-generated when omitted.                                |
| `branch_reference` | string |          | Branch ID or branch name. When omitted, creates the release from the main branch. |

## Responses

| Status | Description       |
| ------ | ----------------- |
| 201    | Release created   |
| 400    | Invalid input     |
| 401    | Unauthorized      |
| 403    | Forbidden         |
| 404    | Project not found |
| 413    | Payload too large |
| 500    | Server error      |
