Room Photos

Assign a Photo to a Space

Assigns the selected photo to a space.

put/properties-api/room-photos/photos/{photoId}/assign

Request

  • Base URL
    https://open-api.guesty.com/v1
  • URL
    https://open-api.guesty.com/v1/properties-api/room-photos/photos/{photoId}/assign
  • Auth
    API key in header authorization

Path parameters

photoIdstring required

The id of the photo to set spaceId to

Request body

spaceIdstring required

Space Id to assign room photo to

propertyIdstring required

The Guesty ID of the property to which the room photo should be assigned.

Response

Returns a list of all property room photo mappings, including photo ID, space ID and photo URL.

propertyIdstring

Example response

{
  "propertyId": "645774fe76e5da340bf915e7",
  "roomPhotos": [
    {
      "_id": "5d9e9f4a6d5b2e0017b6d5b2",
      "spaceId": "545774fe76e5da340bf915e8",
      "photoUrl": "https://image.com",
      "photoId": "145774fe76e5da340bf915e2",
      "accountId": "345774fe76e5da340bf915e3"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.