# Bookings message template settings

`PUT /lodging/message-settings` · Rivier · bookings

Switch a kind of guest message on or off and hold it until a time of day in the property's own time zone.

- Scope: bookings:admin
- Sdk: bookings.messageTemplate.settings
- Cli: bookings message template settings

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "pre_arrival",
        "welcome",
        "thanks",
        "cancellation",
        "checkin_info",
        "review_request",
        "payment_due"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "sendFrom": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "propertyId",
    "kind",
    "enabled"
  ],
  "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 PUT 'https://api.rivier.ai/lodging/message-settings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "kind": "pre_arrival",
  "enabled": false
}'
```
