Create a time condition

Creates a time condition on your account and returns its identifiers — note that success is 200, not 201. The ID, extension number and routing entry are all assigned for you; any field in the body other than the four below is ignored. If the rules include holiday matches, an automatic cleanup is scheduled for three days after the last holiday ends. Creation is not atomic: if the routing entry fails to be written, the condition row can still exist, and the call returns 400.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Name for the condition; also used to name the routing entry it creates.

string
required

Free-text description stored with the condition.

conditions
array of objects
required

Ordered list of rules, each pairing a match (the dates, days and times it covers) with an action (where matching calls go); the first match wins.

conditions*
closed_action
object
required

Where calls go when none of the conditions match — for example voicemail after hours.

Responses

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json