# Serve the site on www and a wildcard, or turn it off with null

`POST /workspace/domains/{d}/site` · Rivier · domains

Serve the site on www and a wildcard, or turn it off with null.

- Scope: domains:write
- Sdk: domains.domain.setSite
- Cli: domains domain set site

## Parameters

- `d` (path, required), string

## Request body

`application/json`

```json
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "www": {
          "type": "boolean"
        },
        "wildcard": {
          "type": "boolean"
        }
      },
      "required": [
        "www",
        "wildcard"
      ],
      "additionalProperties": false
    },
    {
      "type": "null"
    }
  ]
}
```

## 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/workspace/domains/{d}/site' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "www": false,
  "wildcard": false
}'
```
