# Make a variant the page (one patch to the working copy that can be undone

`POST /hosting/sites/{id}/experiments/{exp}/promote` · Rivier · hosting

Make a variant the page (one patch to the working copy that can be undone; it goes live with the next approved release). Without a winner by the test's own rule a reason is required. A person only.

- Scope: hosting:write
- Graphql: Mutation.hostingExperimentPromote
- Sdk: hosting.experiment.promote
- Cli: hosting experiment promote

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "variantId": {
      "type": "string",
      "maxLength": 20
    },
    "reason": {
      "type": "string",
      "maxLength": 300
    }
  },
  "required": [
    "variantId"
  ],
  "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}/experiments/{exp}/promote' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "variantId": "string"
}'
```
