Create unit
documentedCreate a new unit for a property.
POST /rooms-api/properties/{property-id}/unitsRooms 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" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept-Version: 1.0" \
-d '{"configuration": {"unit_type_id": {{$unit_type_id}}, "rooms": [ { "type": "GUEST_ROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": {{$bed_type_id}}, "bed_count": {{$bed_count}} } ], "is_default_configuration": true } ] } ] }, "unit_name_id": {{$unit_name_id}}, "number_of_units": {{$number_of_units}}, "smoking_policy": "SMOKING_AND_NONSMOKING", "size": { "value": {{$size_value}}, "unit": "SQM" }, "partner_reference_name": "{{$partner_reference_name}}", "occupancy_details": { "max_guests": {{$max_guests}}, "max_adults": {{$max_adults}}, "max_children": {{$max_children}} } }'