Skip to main content

Bedrooms

Overview

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

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Bedroom
rentalIntegerReadRental's ID related to the Bedroom
idIntegerReadBedroom's id.
nameObjectReadBedroom's name, list of locales described in enums section.
bunk_beds_countIntegerReadBedroom's number of bunk beds.
double_beds_countIntegerReadBedroom's number of double beds.
kingsize_beds_countIntegerReadBedroom's number of kingsize beds.
queensize_beds_countIntegerReadBedroom's number of queensize beds.
single_beds_countIntegerReadBedroom's number of single beds.
sofa_beds_countIntegerReadBedroom's number of sofa beds.
futon_beds_countIntegerReadBedroom's number of futon beds.
floor_mattress_beds_countIntegerReadBedroom's number of floor mattress beds.
toddler_beds_countIntegerReadBedroom's number of toddler beds.
crib_beds_countIntegerReadBedroom's number of crib beds.
air_mattress_beds_countIntegerReadBedroom's number of air mattress beds.
created_atTimeReadBedroom's create time.
updated_atTimeReadBedroom's update time.

List bedrooms

List all bedrooms for a given account.

GET /bedrooms
response.json
{
"links": {
"bedrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bedrooms.rental}"
},
"bedrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bedroom"
},
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1,
"created_at": "2025-04-11T03:49:15.670Z",
"updated_at": "2025-04-18T03:49:15.670Z"
}
],
"meta": {}
}

Get a single bedroom

Returns a single bedroom identified by ID.

GET /bedrooms/:bedroom_id
response.json
{
"links": {
"bedrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bedrooms.rental}"
},
"bedrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bedroom"
},
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1,
"created_at": "2025-04-11T03:49:15.674Z",
"updated_at": "2025-04-18T03:49:15.674Z"
}
],
"meta": {}
}

Create a new bedroom

Creates a bedroom for given rental.

POST /rentals/:rental_id/bedrooms
request.json
{
"bedrooms": [
{
"name_en": "bedroom",
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1
}
]
}
response.json
{
"links": {
"bedrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bedrooms.rental}"
},
"bedrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bedroom"
},
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1,
"created_at": "2025-04-11T03:49:15.681Z",
"updated_at": "2025-04-18T03:49:15.681Z"
}
],
"meta": {}
}

Update a bedroom

Returns an updated bedroom identified by ID.

PUT /bedrooms/:bedroom_id
request.json
{
"bedrooms": [
{
"name_en": "bedroom",
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1
}
]
}
response.json
{
"links": {
"bedrooms.rental": "https://www.bookingsync.com/api/v3/rentals/{bedrooms.rental}"
},
"bedrooms": [
{
"links": {
"rental": 1
},
"id": 1,
"name": {
"en": "bedroom"
},
"bunk_beds_count": 0,
"double_beds_count": 1,
"kingsize_beds_count": 0,
"queensize_beds_count": 0,
"single_beds_count": 2,
"sofa_beds_count": 1,
"created_at": "2025-04-11T03:49:15.687Z",
"updated_at": "2025-04-18T03:49:15.687Z"
}
],
"meta": {}
}

Destroy a bedroom

Required OAuth scope: :rentals_write

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

DELETE /bedrooms/:bedroom_id