# Approve a production release

`POST /hosting/sites/{id}/releases/{release}/approve` · Rivier · hosting

Approve a production release. When the site needs several approvers each different person approves once (with an optional comment); the exact checked files go live with the last one.

- Scope: hosting:write
- Graphql: Mutation.hostingReleaseApprove
- Sdk: hosting.release.approve
- Cli: hosting release approve

## Parameters

- `id` (path, required), string
- `release` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "comment": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/hosting/sites/{id}/releases/{release}/approve' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "comment": "string"
}'
```
