# Move several bookings across the platform's businesses, all or none

`POST /bookings/reschedule/batch` · Rivier · bookings

Move several bookings across the platform's businesses, all or none: to another time, another party size (for bookings with no price at Rivier), or both. The new places are taken before the old are given up; a dry run says what each would become.

- Scope: bookings:write
- Graphql: Mutation.bookingsPlatformReschedule
- Sdk: bookings.platform.reschedule
- Cli: bookings platform reschedule

## Parameters

- `dryRun` (query), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "business": {
            "type": "string",
            "format": "uuid"
          },
          "bookingId": {
            "type": "string",
            "format": "uuid"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "partySize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          }
        },
        "required": [
          "business",
          "bookingId"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 20
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "items",
    "idempotencyKey"
  ],
  "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 POST 'https://api.rivier.ai/bookings/reschedule/batch' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "business": "string",
      "bookingId": "string"
    }
  ],
  "idempotencyKey": "string"
}'
```
