POST https://api.speakap.io/networks/:eid/alerts/
1.0.10
Request
URI: | /networks/{networkEID}/alerts/ |
---|---|
Method: | POST |
Content-Type: | application/json |
Authentication: | OAuth 2.0 |
Name | Type | Description |
---|---|---|
networkEID | EID | Network EID |
Name | Type | Description |
---|---|---|
recipients | array | List of recipient objects (currently only user type supported) |
recipients[ i ]. EID | EID | EID of the user |
recipients[ i ]. XID | string | Since 1.3.8 XID of the user. Note that either XID or EID must be set, not both at the same time. |
recipients[ i ]. type | string | 'user' |
localizableBody | object | Localizable message body |
localizableBody. <locale> | string | Body in the language of the RFC 5646/4647 <locale> |
appData | string | Since 1.0.10 Optional string of additional data, passed to the app when the user clicks the alert |
{
"recipients": [
{
"EID": "0123456789ABCDEF",
"type": "user"
},
{
"XID": "NL23_A341",
"type": "user"
}
],
"localizableBody": {
"en-US": "Your test results are in.",
"nl-NL": "Je testresultaten zijn binnen."
},
"appData": "resultId=1241212"
}
Response