Create acknowledge link

This endpoint creates a link that acknowledges an Incident.

Request

To create an acknowledge link for an Incident please make a POST request to the following URL:

HTTP MethodURL
POSThttps://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/acknowledge-token/

Path Parameters

ParameterTypeDescription
incident_idStringThe id of the Incident. Incidents have no label, so the ~label form is not supported

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ 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."
}

Response

PropertyTypeDescription
tokenStringToken bound to this Incident
urlStringReady-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.