# Make a preview the production site

`POST /hosting/sites/{id}/deployments/{dep}/promote` · Rivier · hosting

Make a preview the production site.

- Scope: hosting:write
- Mcp: rivier_hosting_deployment_promote
- Graphql: Mutation.hostingDeploymentPromote
- Sdk: hosting.deployment.promote
- Cli: hosting deployment promote
- Events: hosting.deployment.promoted

## Parameters

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

## Responses

- `201`: 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}/deployments/{dep}/promote' \
  -H 'Authorization: Bearer $KEY'
```
