Update unit
documentedUpdate a unit for a property.
PATCH /rooms-api/properties/{property-id}/units/{unit-id}Rooms 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/rooms-api/properties/{{$property_id}}/units/{{$unit_id}}" \
-X PATCH \
-H "Content-Type: application/json" \
-H "Accept-Version: 1.0" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "X-Booking-Api-Key: {{BOOKING_API_KEY}}" \
-d '{"configuration": {"unit_type_id": {{$unit_type_id}}, "rooms": [ {"type": "BEDROOM_SUBROOM", "bed_configurations": [ {"beds": [ {"bed_type_id": {{$bed_type_id}}, "bed_count": {{$bed_count}} } ], "is_default_configuration": true } ] } ] }, "partner_reference_name": "{{$partner_reference_name}}", "size": {"value": {{$size_value}}, "unit": "SQM"}, "occupancy_details": {"max_guests": {{$max_guests}}, "max_adults": {{$max_adults}}}'" ,
"variables":[
{"name":"property_id","label":"Property ID","placeholder":"123456","type":"number","exampleValue":"123456"},
{"name":"unit_id","label":"Unit ID","placeholder":"unit-id","type":"number","exampleValue":"789012"},
{"name":"unit_type_id","label":"Unit Type ID","placeholder":"unit_type_id","type":"number","exampleValue":"1"},
{"name":"bed_type_id","label":"Bed Type ID","placeholder":"bed_type_id","type":"number","exampleValue":"6"},
{"name":"bed_count","label":"Bed Count","placeholder":"bed_count","type":"number","exampleValue":"1"},
{"name":"partner_reference_name","label":"Partner Reference Name","placeholder":"Park facing Apartment","type":"text","exampleValue":"Park facing Apartment"},
{"name":"size_value","label":"Unit Size Value","placeholder":"size_value","type":"number","exampleValue":"120"},
{"name":"max_guests","label":"Maximum Guests","placeholder":"max_guests","type":"number","exampleValue":"4"},
{"name":"max_adults","label":"Maximum Adults","placeholder":"max_adults","type":"number","exampleValue":"4"}
] }
"}