PBX API : POST /AlarmClocks/

To make a alarm clock, make an HTTP POST request with basic authorization, resource URI:

http(s)://<PBX>/api/v1/originate/AlarmClocks/

POST Parameters

Required Parameters

NameDescription
numberThe phone number. Example: 105

Optional Parameters: 

NameDescription
postponeDate of delayed sending message. Example: 14/07/2015 15:35
dialplanThe dialplan name. Default: alarmclock


Response

TypeExample
Success{"type":"result","result":"105_851541"}
Error{"type":"error","reason":"Destination number is empty","result":null}

105_851541 - is ID of alarm clock

Example

 

 

CLI CURL
curl -X POST -u user:pass --url "http(s)://<PBX>/api/v1/originate/AlarmClocks/" --data-urlencode "number=330" --data-urlencode "dialplan=alarmclock" --data-urlencode "postpone=14/07/2011 15:35"