Update Image Tags

This endpoint allows you to update the tags for a specific image associated with a hotel. You must provide the hotel_id, channel_hotel_id, and the photo_id along with the tags to be updated in the request body.


Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/bdc/photo/update
-app-id: YOUR_APP_ID
Authorization: YOUR_API_KEY
Content-Type:application/json
Header
Type
Required
Description

app-id

string

Yes

Your application ID. Required for authentication.

Authorization

string

Yes

Your API key. for authorization. Required for authentication.

Content-Type

string

Yes

Must be set to application/json.


Attributes


hotel_id string (Required)

The unique property ID as assigned by the provider upon creation of the property.


channel_hotel_id string (Required)

The unique id for the hotel on the specific channel.


photo_id string (Required)

A unique identifier for the photo being submitted.


tags array of integers (Optional)

An array of integer tags associated with the photo, used for categorization.

  • List of the image tag(s) that describe the photo content.

  • Must contain integers; no duplicates.

  • To retrieve all the photo tags used on Booking.com, see retrieving all photo tags.


Sample Request

{
   "hotel_id": "NT7",
   "channel_hotel_id":"12837615",
   "photo_id": "KAVVUsPDrSg",
   "tags":[2,4,6,3,1]
}

Response

Sample Success Response

{
   "Status": "Success",
   "Data": [],
   "Message": ""
}

Success Response Body Elements

Status string

Indicates the result of the API call.

Will be "Success" for successful operations.


Data object

The response data, the root element.


Message string

A message providing more information about the error.

Errors

Sample Error Response 1

{
   "Errors": [
       {
           "Code": "578",
           "ShortText": "Photos data not found"
       }
   ],
   "Status": "Fail"
}

Sample Error Response 2

{
   "Errors": [
       {
           "Code": "574",
           "ShortText": "Image tags is invalid or not found!"
       }
   ],
   "Status": "Fail"
}

Sample Error Response 3

{
   "Errors": [
       {
           "Code": "400",
           "ShortText": "HotelCode: Invalid HotelCode ('NT711')"
       }
   ],
   "Status": "Fail"
}

Sample Error Response 4

{
   "Errors": [
       {
           "Code": "573",
           "ShortText": "channel-mapping not found for this property!"
       }
   ],
   "Status": "Fail"
}

Sample Error Response 5

{
   "Status": "Fail",
   "Errors": [],
   "Message": "'KAVVUsPDrSg1' is not an accepted value for key photo_id"
}

Error Response Body Elements

Status string

Indicates the result of the API call, which will be always "Fail" in case of an error response.


Error array

Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:

Code string

Specific error code that helps identify the type of error.

For example: "400" indicates a bad request.

ShortText string

A short description of the error.


Message string

A message providing more information about the error.

Last updated

Was this helpful?