Update photo tags

Use this endpoint to edit tags for already uploaded photos, this means if your photos are still being processed - you will not be able to use this endpoint yet.

In order to update tags for a photo - you need to send a complete list of tags for specific photo.

For example, if you want to add a new tag - you will need to send list of all existing tags AND the new tag.

This endpoint simply expects array of tag identifiers - tag_ids. If you want to remove all tags from a photo - just send an empty array ([]).


HTTP request

POST https://supply-xml.booking.com/photo-api/properties/:property_id/photos/:photo_id/tags

Request headers

Header Description Type Required Notes
Authorization Machine account username and password string Required Example: Authorization: Basic {username:password}

Request body

{
  "tag_ids": [1, 5, 7]
}

Response body

{
    "data": {
        "success": 1
    },
    "meta": {
        "ruid": "UmFuZG9tSVYkc2RlIyh9Yd6zYn4H/Yq81zhSeCU73pHOvz/lmKy3wP2mumR9PfHiG9+2ccr3DkUH9e4Wy8ES3++asmdXwsmKVy83Q4/L34="
    },
    "warnings": [],
    "errors": []
}