Create TemporalRules
Sandbox is coming soon
Today, requests on this page run against your live account. A hosted sandbox with simulated PSTN is on the roadmap — until then, use a non-production user or callflow when experimenting.
Authorization
AuthToken X-Auth-Token<token>
Obtain via PUT /v2/user_auth (user credentials) or PUT /v2/api_auth (account API key). See Authentication.
In: header
Path Parameters
account_id*string
Vinix account identifier.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/accounts/string/temporal_rules" \ -H "Content-Type: application/json" \ -d '{ "data": { "cycle": "date", "name": "string" } }'{
"data": {
"cycle": "date",
"days": [
1
],
"enabled": true,
"flags": [
"string"
],
"interval": 1,
"month": 1,
"name": "string",
"ordinal": "every",
"start_date": 62586115200,
"time_window_start": 0,
"time_window_stop": 0,
"wdays": [
"monday"
]
}
}{
"code": "string",
"message": "string",
"request_id": "string"
}{
"code": "string",
"message": "string",
"request_id": "string"
}{
"code": "string",
"message": "string",
"request_id": "string"
}
