---
title: "Turn auto-rebook on or off for a booking"
method: PATCH
path: "/v1/bookings/{publicId}/auto-rebook"
tags: ["bookings"]
---

# Turn auto-rebook on or off for a booking

`PATCH /v1/bookings/{publicId}/auto-rebook`

## Request

- Base URL: `https://api.getmyhotels.com`
- URL: `https://api.getmyhotels.com/v1/bookings/{publicId}/auto-rebook`
- Auth: HTTP bearer

Runs `booking.setAutoRebook`; owner-only. Standing permission, for this one stay, to cancel and rebook it at a lower rate when the guest comes out ahead after any cancellation fee. Arming rejects with 400 unless the booking is `confirmed`, its check-in is still in the future, and it is not itself the replacement for an earlier booking. DISARMING is never rejected — withdrawing consent must always work.

## Path parameters

- `publicId` string, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

Success

- unknown

## Other responses

- `400`: Request validation failed or the router rejected the input
- `401`: Missing or invalid bearer session token
- `404`: Resource not found
- `426`: Reported X-GMH-App-Version is below the supported minimum — the app must update
- `500`: Unexpected server error (opaque; details stay in logs)

---

[API](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api.md) · [All operations](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/revisions/cba24a9c13f0?raw)
