Dismiss

Dismiss agent error

Dismiss the given agent error. You must pass the reason for dismissal.

POSThttps://cloud-api.calyptia.com/v1/agent_errors/{agentErrorID}/dismiss
Authorization
Path parameters
agentErrorID*string (uuid)
Body
reason*string
Example: "It was just a test, this config is not used in production."
Response

OK

Body
dismissedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/agent_errors/{agentErrorID}/dismiss', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "reason": "It was just a test, this config is not used in production."
    }),
});
const data = await response.json();
Response
{
  "dismissedAt": "2024-10-16T08:54:25.675Z"
}