Update time range

Description

Updates an existing time range.

Definition

PATCH https://api.hirefire.io/time_ranges/:id

Parameters

id required   string 
The id of the time range to update 
time_range[from] optional   integer 
The hour of the day that this time range will start to apply to 
time_range[until] optional   integer 
The hour, after which, this time range will no longer apply 
time_range[minimum] optional   integer 
The minimum amount of dynos to run 
time_range[maximum] optional   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
  }
}