> For the complete documentation index, see [llms.txt](https://partner-docs.covergenius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partner-docs.covergenius.com/rentalcover/endpoints/update.md).

# Update

**What it does:** Modifies an existing booking using a two-step preview-then-commit flow.

**When to call it:** Before the booking's `FromDate` has passed.

{% hint style="info" %}
**Restrictions**

To change the customer's email address, use [UpdateCustomer](/rentalcover/endpoints/update-customer.md).
{% endhint %}

## **What can be updated**

* Rental duration (`ToDate` relative to `FromDate`).
* Cover amount (`VehicleStdLiabilityLow` / `VehicleStdLiabilityHigh`).
* Customer details (`FirstName`, `LastName`, `CustomerAge`, `Address1`/`2`, `City`, `Region`, `PostalCode`, `Phone`).
* Vehicle information (`VehicleNettPrice`).

```
POST /insurances/update/<reference>
```

## Two-step flow

**Step 1. Preview (**`QuoteOnly: 1`**):** Returns the updated price without saving anything. Present the price difference to the customer before proceeding.

```shellscript
curl -i -X POST \
  -H "X_API_KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "QuoteOnly": 1,
    "FromDate": "2025-08-01 00:00:00",
    "ToDate": "2025-08-10 00:00:00",
    "FirstName": "Jane",
    "LastName": "Smith",
    "Email": "jane@example.com",
    "Country": "US"
  }' \
  https://api-staging.rentalcover.com/insurances/update/AB12-345C-INS
```

**Step 2. Commit (**`QuoteOnly: 0`**):** Applies the change. RentalCover automatically refunds or charges the difference to the original card.

```shellscript
curl -i -X POST \
  -H "X_API_KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "QuoteOnly": 0,
    "FromDate": "2025-08-01 00:00:00",
    "ToDate": "2025-08-10 00:00:00",
    "FirstName": "Jane",
    "LastName": "Smith",
    "Email": "jane@example.com",
    "Country": "US"
  }' \
  https://api-staging.rentalcover.com/insurances/update/AB12-345C-INS
```

## Request parameters

Update accepts fields from [Group A](https://partner-docs.covergenius.com/rentalcover/endpoints/pages/WVMEVLGGGf8OHDZ9pLSL#group-a.-core-booking), [Group B](https://partner-docs.covergenius.com/rentalcover/endpoints/pages/WVMEVLGGGf8OHDZ9pLSL#group-b.-customer), [Group D](https://partner-docs.covergenius.com/rentalcover/endpoints/pages/WVMEVLGGGf8OHDZ9pLSL#group-d.-pricing-and-coverage), and [Group F](https://partner-docs.covergenius.com/rentalcover/endpoints/pages/WVMEVLGGGf8OHDZ9pLSL#group-f.-partner-and-integration). Include only the fields you want to change, omitted fields remain unchanged.

### Update-specific parameter&#x20;

Required.

<table data-header-hidden="false" data-header-sticky><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>QuoteOnly</code></td><td>boolean [0|1]</td><td><code>1</code> = preview (shows new price, saves nothing). <code>0</code> = commit the change. Always call step 1 first.</td></tr></tbody></table>

{% hint style="info" %}
`Email` is accepted as an identifier but cannot be changed here. Use [UpdateCustomer](/rentalcover/endpoints/update-customer.md).
{% endhint %}

## Response

Returns a [Booking Response](/rentalcover/shared-reference/response-objects.md#booking-responses). In preview mode (`QuoteOnly: 1`), Status and pricing fields reflect the proposed change but nothing is saved. In commit mode (`QuoteOnly: 0`), the response confirms the applied change.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://partner-docs.covergenius.com/rentalcover/endpoints/update.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
