# Take the site offline (a production release with an offline page)

`POST /hosting/sites/{id}/unpublish` · Rivier · hosting

Take the site offline (a production release with an offline page). Publishing again or rolling back brings it back. A person only.

- Scope: hosting:write
- Graphql: Mutation.hostingSiteUnpublish
- Sdk: hosting.site.unpublish
- Cli: hosting site unpublish

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "note": {
      "type": "string",
      "maxLength": 280
    }
  },
  "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}/unpublish' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "note": "string"
}'
```
