# Set the owner and commission of a managed property

`PUT /lodging/owner-terms` · Rivier · bookings

Set the owner and commission of a managed property.

- Scope: bookings:admin
- Sdk: bookings.ownerTerms.set
- Cli: bookings owner terms set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "ownerName": {
      "type": "string",
      "maxLength": 160,
      "default": ""
    },
    "ownerEmail": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        {
          "type": "string",
          "const": ""
        }
      ],
      "default": ""
    },
    "commissionPercent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "propertyId",
    "commissionPercent"
  ],
  "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/owner-terms' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "commissionPercent": 0
}'
```
