200 OK
401 Unauthorized
meta
section at response object.GET https://staging.channex.io/api/v1/room_types?filter[property_id]=PROPERTY_ID
200 OK
HTTP Code if operation is successful. Will contain a list of Room Type objects in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided. 200 OK
401 Unauthorized
200 OK
401 Unauthorized
404 Not Found
200 OK
HTTP Code if operation is successful. Will contain a Room Type object in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Room Type.404 Not Found
HTTP Code if Room Type with provided ID is not present at system.201 Created
401 Unauthorized
422 Unprocessable Entity
[required]
[required]
[required]
[required]
[required]
[required]
[required]
occ_adults
.
Note: How many guests can stay in the room by default (without extra spaces). Keep in mind, this field can not be greater than occ_adults
value. Typically this value is set equal to amount of adults.
[optional]
[optional]
room
, dorm
.[optional]
dorm
.[optional]
description
- optional text field with Property description. By default Description will be equal to null
.
photos
- optional list of photos associated with Property. Each photo is object with next fields:
url
- photo URL
position
- integer value to represent photo position at list, Photo with position equal to 0 is used as Cover Photo for Room Type
description
- Photo text description
author
- Name of photo Author
kind
- one of three possible values: photo, ad (advertising), menu (restaurant menu photo).
More information about Photo API is here.201 Created
HTTP Code if operation is successful. Will contain a Room Type object in the answer.401 Unauthorized
HTTP Code if wrong Bearer Token provided.422 Unprocessable Entity
HTTP Code if any validation rule is failed.200 OK
401 Unauthorized
404 Not Found
422 Unprocessable Entity
200 OK
HTTP Code if operation is successful. Will contain a Room Type object in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided.404 Not Found
HTTP Code if Room Type with provided ID is not present at system.422 Unprocessable Entity
HTTP Code if any validation rule is failed.200 OK
401 Unauthorized
404 Not Found
200 OK
HTTP Code if operation is successful. Will contain a Meta object with message in the answer.401 Unauthorized
HTTP Code if wrong Bearer Token provided.404 Not Found
HTTP Code if Room Type with provided ID is not present at system.