Set event status to completed or failed. Only pending events (with both completed_at and failed_at NULL) can be updated. When setting status to 'completed', completed_at is set and failed_at is cleared. When setting status to 'failed', failed_at is set and completed_at is cleared. This is a once-only operation - events cannot be re-processed once marked as completed or failed. Returns 409 Conflict if event is already processed, 404 Not Found if event doesn't exist.
PATCH
/v2/api/events
curl \
--request PATCH 'https://api.maddenanalytics.com/v2/api/events' \
--header "Content-Type: application/json" \
--data '{"accountId":"string","completedAt":"string","createdAt":"string","eventType":"string","failedAt":"string","id":"string","payload":{}}'
Request examples
{
"accountId": "string",
"completedAt": "string",
"createdAt": "string",
"eventType": "string",
"failedAt": "string",
"id": "string",
"payload": {}
}
Response examples (200)
{
"accountId": "string",
"completedAt": "string",
"createdAt": "string",
"eventType": "string",
"failedAt": "string",
"id": "string",
"payload": {}
}
Response examples (404)
{
"error": "Error Type (if any)",
"message": "Message describing the error",
"statusCode": 400
}
Response examples (409)
{
"error": "Error Type (if any)",
"message": "Message describing the error",
"statusCode": 400
}
Response examples (default)
{
"error": "Error Type (if any)",
"message": "Message describing the error",
"statusCode": 400
}