Create time range

Description

Adds a new time range to a manager.

Definition

POST https://api.hirefire.io/time_ranges

Parameters

time_range[manager_id] required   string 
The id of the manager to create the time range for 
time_range[from] required   integer 
The hour of the day that this time range will start to apply to 
time_range[until] required   integer 
The hour, after which, this time range will no longer apply 
time_range[minimum] required   integer 
The minimum amount of dynos to run 
time_range[maximum] required   integer 
The maximum amount of dynos to run 
time_range[position] optional   integer 
The position of the time range (lower numbers take precedence over higher numbers with overlapping days/hours) 
time_range[monday] optional   boolean 
Apply this time range on monday 
time_range[tuesday] optional   boolean 
Apply this time range on tuesday 
time_range[wednesday] optional   boolean 
Apply this time range on wednesday 
time_range[thursday] optional   boolean 
Apply this time range on thursday 
time_range[friday] optional   boolean 
Apply this time range on friday 
time_range[saturday] optional   boolean 
Apply this time range on saturday 
time_range[sunday] optional   boolean 
Apply this time range on sunday 

Result Format

200 OK

{
  "time_range": {
    "id": "bf561643-2fce-4b7b-b2e1-5c010341f824",
    "manager_id": "efa63389-688c-44ff-85ee-6b23d839f13d",
    "from": 0,
    "until": 12,
    "minimum": 1,
    "maximum": 3,
    "position": 0,
    "monday": true,
    "tuesday": true,
    "wednesday": true,
    "thursday": true,
    "friday": true,
    "saturday": false,
    "sunday": false
  }
}