v1

latestOpenAPI 3.0.32026-07-2632131.4 MB
Room Photos

Unassign a Photo from a Space

Removes the selected photo from the designated space.

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

Path parameters

photoIdstring required

The id of the photo

Request body

propertyIdstring required

The Guesty ID of the property associated with this space.

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