Event Management
Correct an ingested event
Changed onThis API lets you to correct events. Available in both synchronous and asynchronous mode
- Usages: Reduction of all usages associated with this event
- Revenue: Reduction of all revenues associated with this event
- Entitlements: Entitlements(Feature Credits) consumed by this event are granted back to the account.
Possible Actions:
- UNDO: Undo all usages, revenue and entitlements associated with an event
- REDO: Performs UNDO and re-ingests the same event
- REDO_EVENT: Performs UNDO and re-ingests the correction payload of the event
post/events/correction
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
action'UNDO' | 'REDO' | 'REDO_EVENT' required
Example:UNDO
Action to perform in event correction
require_confirmationboolean
Specifies whether to start a migration only after a confirmation
Request body
Example request
{
"event": {
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"attributes": [
{
"name": "message",
"unit": "characters"
}
]
}
}Response
Success response
Example response
{
"data": [
{
"eventPayload": {
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"attributes": [
{
"name": "message",
"unit": "characters"
}
]
},
"ingestionStatus": {
"status": "INGESTION_COMPLETED",
"statusDescription": "Ingestion Completed successfully"
},
"customerId": "1",
"createdAt": "2022-06-15T07:30:35.123"
}
]
}Changes
- breaking
the
////////response property's maxLength was increased from50to200for the response status - warning
added the new
INGESTION_FAILED_INSUFFICIENT_CREDITSenum value to the///////response property for the response status - info
the
//request property's maxLength was increased from50to200
- breaking
- warning
added the new
INGESTION_FAILED_INVALID_NAMED_LICENSE_EVENTenum value to the///////response property for the response status - info
added the new optional
queryrequest parameterrequire_confirmation
- warning