Room Photos

Unassign a Photo from a Space

Removes the selected photo from the designated space.

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

Request

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

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

Changes

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