CA App Synthetic Monitor API : ch_add

Add a contact to an account.

price: 1 api credit

<<back to index

parametervaluetypedefault / required*notes
nkeytoken *Session key or token. Automatically assigned (only if optional) or obtained via acct_login/acct_token call.  
acctstring Account e-mail. If left empty, then the request is on behalf of the account that is logged in (nkey).  
namestring (32) *Contact name.  
typeenum (email, sms, icq, fax, phone, group, script, page, msn, jabber, nabaztag, action, twitter, rss, push) *Type of contact.  
addressstring (255) *Address of the contact.  
routestring (255) Preferred gateway (for sms-type contacts).  
starttime Start time, format HH:MM:SS.  
endtime End time, format HH:MM:SS.  
daysstring List of weekdays. Comma separated list of digits 1-7, example: 1,2 is Monday and Tuesday.  
confirmbooleany Should a confirmation be requested from the addressee.  
callbackstring Callback function for JSONP style calls. When this parameter is given, the result will be JSON instead of XML.  
viewenum (xml, json)xml Specifies the desirable representation of the output (XML or JSON). HTTP Accept header can be used and has precedence.  


  <cid> unsigned int </cid>
(presence of output fields depends on input parameters)

Error codes:

1000authentication error
1001call syntax error
1002undefined name or id
1003account limit exceeded
1004database error
1005duplicate entry
1006upgrade account
1007not yours (anymore)
1008session expired
1009insufficient credits
1010messaging error
1011undefined result
1012cannot perform that operation
1013illegal parameter value
1014TOS restriction
1015unconfirmed address
1016contact helpdesk first
9999unsupported feature
1017value not allowed

<<back to index