Skip to content

Get units

Request

Get all active units for a property

Path
property-idinteger, (int32)required
Query
debug_infoboolean

Enable debug to return $.unit_name_fallback field in response

Default:false
curl -i -X GET \
  'https://developers.booking.com/_mock/connectivity/docs/openapispecs/rooms-api/rooms-api-specification/rooms-api/properties/{property-id}/units?debug_info=false'

Responses

OK

Bodyapplication/json
dataArray of objects(Unit)
warningsArray of objects(ApiError)
errorsArray of objects(ApiError)
metaobject(ResponseMeta)
Response
{ "data": [ {} ], "warnings": [ {} ], "errors": [ {} ], "meta": { "ruid": "string" } }