Set main photo
documentedSet the main photo for a property (and manage smart ordering).
POST /photo-api/properties/{property_id}/galleryPhoto APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://supply-xml.booking.com/photo-api/properties/{{$property_id}}/gallery" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"insert_photos": ["{{$photo_id_1}}","{{$photo_id_2}}"]}'