Contains Rooms API specification
Contains Rooms API specification
One or more floors where the unit is located; 0 is a ground floor
Maximum number of children eligible for the children rate (the rest are charged as adults), must be less than or equal to number of children.
Contains unit name (EN_GB locale) for any unit name ID, including those missing in meta (for debug purposes only; read only)
curl -i -X PATCH \
'https://developers.booking.com/_mock/connectivity/docs/openapispecs/rooms-api/rooms-api-specification/rooms-api/properties/{property-id}/units/{unit-id}' \
-H 'Content-Type: application/json' \
-d '{
"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
}
]
}
]
}
}'{ "data": {}, "warnings": [ { … } ], "errors": [ { … } ], "meta": { "ruid": "string" } }
curl -i -X GET \
'https://developers.booking.com/_mock/connectivity/docs/openapispecs/rooms-api/rooms-api-specification/rooms-api/properties/{property-id}/deleted-units?debug_info=false'{ "data": [ { … } ], "warnings": [ { … } ], "errors": [ { … } ], "meta": { "ruid": "string" } }
Learn how to effectively use the Try it feature in the Rooms API documentation.
Use the Try it feature to send test request examples to the API endpoints directly from the developer portal and depending on the selected environment either see static, pre-built responses or dynamic responses from a test property.