Creates new room

https://api.oauth.pabau.com/{api_key}/rooms/create
Request
Parameters | Type | Description |
api_key* | ||
name* | String | Name of the room |
all_services* | Int |
1 : Room is associated with all services 0 : Room is associated with specific services (see services array). 0: can also mean that the room may have no services associated (if the services array is empty). |
is_active | Int |
1 : Room is active. |
all_locations | Int |
Specifies whether the room is associated with all locations. 1 : Room is available at all locations. 0 : Room is available at specific locations (see locations array).Default: 0 |
room_fee_type | String |
Type of fee applied to the room Default: 'percentage' |
services | Array |
An array of service IDs that are associated with the room. This array is ignored if all_services is set to 1 |
locations | Array |
An array of location IDs that are associated with the room. This array is ignored if all_locations is set to 1 |
Response sample
application/json
{
"status": 1,
"room_id": {room_id},
"message": "Room created successfully!"
}