Skip to content

Delete units

Request

Delete one or more existing units

Headers
Content-Typestringrequired

Specifies the expected content type. Currently supports application/json.

Value:"application/json"
Accept-Versionstring

Specify the version number to get the API functionality specific to that version. Currently supports the value: 1.0

Value:"1.0"
Bodyapplication/jsonrequired
unitsArray of objects, [ 1 .. 100 ] items(UnitDeleteRequest)required

List of units to delete. All units must belong to the same property. Maximum 100 units per request.

curl -i -X DELETE \
  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
      },
      {
        "property_id": 123456,
        "unit_id": 222222222
      },
      {
        "property_id": 123456,
        "unit_id": 333333333
      }
    ]
  }'

Responses

Units deleted successfully

Bodyapplication/json
datanull
warningsArray of objects(ApiError)
errorsArray of objects(ApiError)
metaobject(ResponseMeta)
Response
Successful deletion of multiple units
{ "errors": [], "warnings": [], "meta": { "ruid": "test-ruid" } }