put https://ads-dev.aylanetworks.com/apiv1/trigger_apps/.json
This API updates the specified trigger app.
{
"trigger_app": {
"name": "email",
"username": "testUpdate",
"repeat_freq": "60",
"param1": "[email protected]",
"param3": "test",
"email_template_id": "test",
"email_subject": "test",
"email_body_html": "test"
}
}
{
"trigger_app": {
"name": "sms",
"nickname": "Name of Trigger App",
"repeat_freq": 0,
"param1": "country code of phone number",
"param2": "phone number",
"param3": "text to send",
"param4": "if acceptance=true, acceptance message, if false, unused",
"contact_id": "sender contact id",
"requires_acceptance": true=enables acceptance flow for SMS applications.
}
}
{
"trigger_app": {
"name": "forward",
"nickname": "Name of Trigger App",
"repeat_freq": 0,
"param1": "",
"param2": "REST API endpoint for POST method",
"param3": "username for POST basic auth",
"param4": "password for POST basic auth",
"param5": "custom data to send"
}
}
{
"trigger_app": {
"name": "push_ios",
"nickname": "Name of Trigger App",
"repeat_freq": 0,
"param1": "registration ID from Apple without dashes or spaces",
"param2": "key assigned to PERM",
"param3": "optional message (max 100 chars)",
"push_sound": "mp3 file name (max 50 chars)",
"push_mdata": "metadata key/value pairs (max 50 chars)"
}
}
{
"trigger_app": {
"name": "push_android",
"nickname": "Name of Trigger App",
"repeat_freq": 0,
"param1": "registration ID from Google",
"param3": "optional message (max 100 chars)",
"push_sound": "mp3 file name (max 50 chars)",
"push_mdata": "metadata key/value pairs (max 50 chars)"
}
}
{
"trigger_app": {
"name": "push_baidu",
"nickname": "Name of Trigger App",
"repeat_freq": 0,
"param1": "registration ID from Baidu",
"param2": "Channel ID",
}
}