v1

latestOpenAPI 3.0.32026-07-2632131.4 MB
Room Photos

Assign a Photo to a Space

Assigns the selected photo to a space.

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

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"
    }
  ]
}