Create Interval
POST https://{{axpAPIDomain}}/api/business-hours/v1/accounts/:accountId/timetables/:timetableId/intervals
Creates a new Interval.
Request Body
{"name"=>"New Year's support", "description"=>"Standard opening hours", "timeFrom"=>"09:00:00", "timeTo"=>"17:00:00", "type"=>"DAYS", "appliesTo"=>["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"intervalId":"b2fb1032-2b50-11ec-8d3d-0242ac130003","name":"New Year's support","description":"Standard opening hours","timeFrom":"09:00:00","timeTo":"17:00:00","type":"DAYS","appliesTo":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]}