# Change an offering

`PUT /payments/offerings/{id}` · Rivier · shop

Change an offering: its fields, add slots (sessions, tickets and hires), set rates for nights that differ, or make it live, paused or a draft. An offering paid online goes live only when Get paid is finished.

- Scope: shop:write
- Mcp: rivier_payments_offering_update
- Graphql: Mutation.shopOfferingUpdate
- Sdk: shop.offering.update
- Cli: shop offering update

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 3,
      "maxLength": 160
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "placeName": {
      "type": "string",
      "maxLength": 160
    },
    "priceMinor": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99999999
    },
    "capacity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "durationMinutes": {
      "type": "integer",
      "minimum": 5,
      "maximum": 43200
    },
    "freeCancelHours": {
      "type": "integer",
      "minimum": 0,
      "maximum": 8760
    },
    "lateRefundPercent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "visibility": {
      "type": "string",
      "enum": [
        "apps",
        "public"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "draft",
        "live",
        "paused"
      ]
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "startsAt": {
            "type": "string",
            "maxLength": 40
          },
          "endsAt": {
            "type": "string",
            "maxLength": 40
          },
          "capacity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "priceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 99999999
          }
        },
        "required": [
          "startsAt"
        ],
        "additionalProperties": false
      },
      "maxItems": 500
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "priceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 99999999
          },
          "units": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "closed": {
            "type": "boolean"
          }
        },
        "required": [
          "day"
        ],
        "additionalProperties": false
      },
      "maxItems": 730
    }
  },
  "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/payments/offerings/{id}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "title": "string",
  "description": "string",
  "placeName": "string",
  "priceMinor": 0,
  "capacity": 0,
  "durationMinutes": 0,
  "freeCancelHours": 0,
  "lateRefundPercent": 0
}'
```
