To create an acknowledge link for an Incident please make a POST request to the following URL:
| HTTP Method | URL |
|---|
| POST | https://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/acknowledge-token/ |
| Parameter | Type | Description |
|---|
| incident_id | String | The id of the Incident. Incidents have no label, so the ~label form is not supported |
$ curl -X POST 'https://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/acknowledge-token/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
{
"token": "dGhpc2lzYW5leGFtcGxldG9rZW4",
"url": "https://industrial.api.ubidots.com/api/v2.0/incidents/689e21cb246a939d3a0c2ed5/acknowledge?token=dGhpc2lzYW5leGFtcGxldG9rZW4"
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}
{
"code": 402001,
"message": "Your current plan does not include Incidents feature."
}
{
"detail": "You do not have permission to perform this action."
}
{
"code": 404001,
"message": "The request was not found."
}
| Property | Type | Description |
|---|
| token | String | Token bound to this Incident |
| url | String | Ready-to-use URL of Acknowledge Incident that carries the token |
The link is meant to be shared, e.g. in a notification, so that anyone who has it can acknowledge the Incident without logging in:
- The token is bound to the Incident and acts on behalf of the account Owner.
- It lasts one day and can be used any number of times until it expires.