# Create branch approval

```http
POST /projects/{project_reference}/branches/{branch_id}/approvals
```

Approve a branch as the calling user, optionally with a comment. Requires project.files.write.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |
| `branch_id`         | path | Yes      |                                                            |

## Request body

| Field     | Type   | Required | Description       |
| --------- | ------ | -------- | ----------------- |
| `comment` | string |          | Approval comment. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 201    | Approval created.                                                                                           |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 413    | Payload too large                                                                                           |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
