Create property
documentedCreate a new property with core details.
POST /property-api/propertiesProperty 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/property-api/properties" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept-Version: 1.0" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"position": {"latitude": {{$latitude}}, "longitude": {{$longitude}}}, \
"check_in": {"from": "{{$check_in_from}}"}, \
"check_out": {"from": "{{$check_out_from}}", "until": "{{$check_out_until}}"}, \
"property_name": "{{$property_name}}", \
"property_category": {{$property_category}}, \
"primary_language": "{{$primary_language}}", \
"languages_spoken": ["{{$languages_spoken_1}}","{{$languages_spoken_2}}"], \
"room_count": {{$room_count}}, \
"floor_count": {{$floor_count}}, \
"provider_property_id": "{{$provider_property_id}}", \
"stars": "{{$stars}}", \
"target": "{{$target}}", \
"physical_address": {"city_name": "{{$city_name}}", "country_code": "{{$country_code}}", "postal_code": "{{$postal_code}}", "address_line": "{{$address_line}}", "display_address": {{$display_address}}}, \
"translations": [ {"city_name": "{{$translation_city_name}}", "address_line": "{{$translation_address_line}}", "language_code": "{{$translation_language_code}}", "property_name": "{{$translation_property_name}}"} ], \
"legal_entity_id": "{{$legal_entity_id}}" }'