Modifying Events

Update a specific Event.


PATCH https://utilityapi.com/api/v2/events/event_uid
# Manually mark an Event as delivered
curl -X PATCH -H 'Authorization: Bearer API_TOKEN_HERE' \
    -d '{"is_delivered": true}' \
    'https://utilityapi.com/api/v2/events/1234'

The request body must be a valid JSON object. Below are the parameters that can be updated. If a parameter isn't included in the request body, it isn't changed.

Parameter Format Description Example
is_delivered Boolean Set the is_delivered state of the Event. This is helpful if you want to manually mark an event as being delivered so we stop trying to send webhook requests to your server for that Event. true

Returns the updated Event object.

// Example result
{
    "uid": "12345",
    "type": "authorization_created",
    "ts": "2016-01-01T12:30:24.653422+00:00",
    "is_delivered": true,
    ...
}
Code Response Format Description
200 Event Successful request.
400 Error The PATCH parameters are malformed. Check the error in the response for the type of error:
  • invalid_param
We may add more error types in the future, so be able to handle unknown types.
401 Error Invalid or missing access_token. See our docs on Authentication for how to properly use your access_token.
404 Error This Event doesn't exist or you don't have permissions to see it.
429 N/A The request was rate limited. Check the Retry-After response header for how long to wait until retrying the request. Do not expect any specific response format for this error (could be html, json, or nothing).
500 N/A Internal server error. Do not expect any specific response format for this error (could be html, json, or nothing). This error is logged and will be fixed by our engineers.
503 N/A Site is currently down for maintenance. Do not expect any specific response format for this error (could be html, json, or nothing).
504 N/A We tried to build this request but timed out. Please try again later. Do not expect any specific response format for this error (could be html, json, or nothing).