# Change one string of a page

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

Change one string of a page. A block's string goes through the page's patch, so undo and the approval a live page needs apply; the title and search texts go through the page's details.

- Scope: hosting:write
- Graphql: Mutation.hostingSitePageEditText
- Sdk: hosting.sitePage.editText
- Cli: hosting site page edit text

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300
    },
    "text": {
      "type": "string",
      "maxLength": 4000
    }
  },
  "required": [
    "key",
    "text"
  ],
  "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}/texts' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "string",
  "text": "string"
}'
```
