Skip to main content

Bathrooms

Overview

This resource represents the rental's bathrooms. This resource is mostly static information used for presentational purposes.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Bathroom
rentalIntegerReadRental's ID related to the Bathroom
idIntegerReadBathroom's id.
nameObjectReadBathroom's name, list of locales described in enums section.
bath_countIntegerReadBathroom's number of baths.
shower_countIntegerReadBathroom's number of showers.
wc_countIntegerReadBathroom's number of wc's.
created_atTimeReadBathroom's create time.
updated_atTimeReadBathroom's update time.

List bathrooms

List all bathrooms for a given account.

GET /bathrooms
response.json
{
"links": {
"bathrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bathrooms.rental}"
},
"bathrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bathroom"
},
"bath_count": 1,
"shower_count": 0,
"wc_count": 2,
"created_at": "2025-03-31T17:52:09.483Z",
"updated_at": "2025-04-07T17:52:09.483Z"
}
],
"meta": {}
}

Get a single bathroom

Returns a single bathroom identified by ID.

GET /bathrooms/:bathroom_id
response.json
{
"links": {
"bathrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bathrooms.rental}"
},
"bathrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bathroom"
},
"bath_count": 1,
"shower_count": 0,
"wc_count": 2,
"created_at": "2025-03-31T17:52:09.485Z",
"updated_at": "2025-04-07T17:52:09.485Z"
}
],
"meta": {}
}

Create a new bathroom

Creates a bathroom for given rental.

POST /rentals/:rental_id/bathrooms
request.json
{
"bathrooms": [
{
"name_en": "bathroom",
"bath_count": 1,
"shower_count": 0,
"wc_count": 2
}
]
}
response.json
{
"links": {
"bathrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bathrooms.rental}"
},
"bathrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bathroom"
},
"bath_count": 1,
"shower_count": 0,
"wc_count": 2,
"created_at": "2025-03-31T17:52:09.488Z",
"updated_at": "2025-04-07T17:52:09.488Z"
}
],
"meta": {}
}

Update a bathroom

Returns an updated bathroom identified by ID.

PUT /bathrooms/:bathroom_id
request.json
{
"bathrooms": [
{
"name_en": "bathroom",
"bath_count": 1,
"shower_count": 0,
"wc_count": 2
}
]
}
response.json
{
"links": {
"bathrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bathrooms.rental}"
},
"bathrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bathroom"
},
"bath_count": 1,
"shower_count": 0,
"wc_count": 2,
"created_at": "2025-03-31T17:52:09.490Z",
"updated_at": "2025-04-07T17:52:09.490Z"
}
],
"meta": {}
}

Destroy a bathroom

Required OAuth scope: :rentals_write

Returns an empty response with 204 No Content status code on success.

DELETE /bathrooms/:bathroom_id