Update one or more existing units
- Mock (schema only)https://developers.booking.com/_mock/connectivity/docs/openapispecs/rooms-api/rooms-api-specification-bulk/rooms-api/units
- Test using live endpointhttps://supply-xml.booking.com/rooms-api/units
- BED_CONFIGURATION
- ADD_ROOM
- REMOVE_ROOM
- UPDATE_ROOM_BEDS
- MIXED_UNIT_TYPES
- SIMPLE_FIELDS
curl -i -X PATCH \
https://developers.booking.com/_mock/connectivity/docs/openapispecs/rooms-api/rooms-api-specification-bulk/rooms-api/units \
-H 'Accept-Version: 1.0' \
-H 'Content-Type: application/json' \
-d '{
"units": [
{
"property_id": 123456,
"unit_id": 111111111,
"configuration": {
"unit_type_id": 9,
"rooms": [
{
"type": "GUEST_ROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 3,
"bed_count": 1
}
],
"is_default_configuration": true
},
{
"beds": [
{
"bed_type_id": 1,
"bed_count": 2
}
],
"is_default_configuration": false
}
]
}
]
}
},
{
"property_id": 123456,
"unit_id": 222222222,
"configuration": {
"unit_type_id": 1,
"rooms": [
{
"type": "BEDROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 3,
"bed_count": 1
},
{
"bed_type_id": 1,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
},
{
"type": "LIVING_ROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 5,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
}
]
}
}
]
}'