Skip to content

Create Alerts

Create the specified alerts.

Verb PUT
Endpoint {base-url}/alerts
Max Page Size N/A

Request Body

{
  "body": [
    {
      "accountId": 161,
      "siteId": 477,
      "machineLocation": "Lunchroom - Soda",
      "machineProse": null,
      "machineId": 1402,
      "code": "NS",
      "message": "No Sales have been reported by this machine for at least 3 day(s).",
      "isCleared": false,
      "clearedAt": null,
      "raisedAt": "2021-03-29T15:56:41.677",
      "alertMetadata": {
        "key": "b",
        "value": "b"
      }
    }
  ]
}

Returns

On Success

Return a list of the IDs of the created alerts.

Response Body

[
  36579
]