Modify a room's photos

Each room has its own photo gallery, stored in a room type. Use /ota/OTA_HotelInvNotif to modify room types.

New Photo API

This page explains how to modify photos using Content API's "overlay" system. We recommend using our new Photo API instead, as it is RESTful and speaks JSON.

Before you start

Overlay

Content API uses an overlay system. Every time you update an existing property, room type, or other object, the body of your request replaces whatever information was stored in our servers at that time. This means existing information may be deleted if you don't include it in your request.

To update an object without deleting information, make sure your request contains both the fields you want to update and those you want to keep the same. Copy/paste sample requests from this page at your own risk.

You need:

Request

HTTP request

https://supply-xml.booking.com/hotels/ota/OTA_HotelInvNotif

Request body

Provide an OTA_HotelInvNotifRQ object in the request body. Example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OTA_HotelInvNotifRQ version="6.0" Target="Production" xmlns="http://www.opentravel.org/OTA/2003/05">
    <SellableProducts HotelCode="{PropertyID}">
        <SellableProduct InvNotifType="Active" InvCode="{RoomTypeID}">
            <GuestRoom>
                  <Description>
                      <!-- We recommended uploading at least 4 room photos (2048x1536px, landscape) -->
                      <Image>http://pathtoimage/doublemer_room001.jpg</Image>
                  </Description>
            </GuestRoom>
        </SellableProduct>
    </SellableProducts>
</OTA_HotelInvNotifRQ>

Response

The response contains an OTA_HotelInvNotifRS object:

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvNotifRS
  xmlns="http://www.opentravel.org/OTA/2003/05"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelInvNotifRS.xsd"
  TimeStamp="2018-08-21T14:57:54+00:00"
  Target="Production"
  Version="3.000">
  <Warnings>
    <Warning Code="733" ShortText="Restricted">Content of GuestRoom/Description/Text is empty</Warning>
  </Warnings>
  <Success />
</OTA_HotelInvNotifRS><!-- RUID: [XXXXXXXXXXXXXXXXXXXXXXXXXXX] -->

Next steps

Asynchronous image processing

Uploaded images take time to process. This means your new property may have errors later, even if the initial response was 200 OK. You can always check the status of your property's content with /ota/OTA_HotelSummaryNotif.