v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Create the blockout time of a room

Use this API to create the blockout time of the specified room.

post/v1/rooms/{room_id}/blockouttimes

Path parameters

room_idstring required

Mandatory Unique 32-character identifier of the room for which you want to create a blockout time.

Response

200

{"stackTrail":"paths:/v1/rooms/{room_id}/blockouttimes:post:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}

Example response

{
  "block_out_times": [
    {
      "block_out_time_id": "3374387d-86ee-49f3-a16e-026a71d4ee9c",
      "room": {
        "id": "699ec863-c155-4c4b-bf58-5310a7d1df1c",
        "name": "15% Premium Room"
      },
      "block_out_time_type": {
        "id": 103,
        "name": "modelling",
        "duration": 15
      },
      "start_time": "2018-10-10T10:15:00",
      "end_time": "2018-10-10T10:30:00",
      "start_time_in_center": "2018-10-10T15:45:00",
      "end_time_in_center": "2018-10-10T16:00:00",
      "notes": "new machines to the room",
      "recurring_block_out_time": {
        "id": "0486ebc6-7889-428b-8fa9-f18477a106d8",
        "time_period": "Daily",
        "interval": 1,
        "rec_start_date": "2018-10-10T00:00:00",
        "occurences": 3
      }
    }
  ]
}