# Hosting site page update

`PATCH /hosting/sites/{id}/pages/{page}` · Rivier · hosting

Change a page's title, path (a page that was published leaves a 301 from the old path; a translation may take its own path), search settings or language group (not its blocks: use patch).

- Scope: hosting:write
- Graphql: Mutation.hostingSitePageUpdate
- Sdk: hosting.sitePage.update
- Cli: hosting site page update

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "access": {
      "type": "object",
      "properties": {
        "rule": {
          "type": "string",
          "enum": [
            "public",
            "signed_in",
            "tier",
            "staff"
          ]
        },
        "tierIds": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 80
          },
          "maxItems": 20
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 40
          },
          "maxItems": 10
        }
      },
      "required": [
        "rule"
      ],
      "additionalProperties": false
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "group": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "seo": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "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 PATCH 'https://api.rivier.ai/hosting/sites/{id}/pages/{page}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "path": "string",
  "access": {
    "rule": "public"
  },
  "title": "string",
  "group": "string",
  "seo": {}
}'
```
