DELETE/UPDATE approach
Overview
Live event changes are expressed through the action field.
The possible values are ADD, UPDATE, and DELETE.
This page explains how UPDATE and DELETE messages are shaped.
Update behavior
Updates use the UPDATE action.
Updates follow a full payload pattern.
That means the message includes the changed fields and the unchanged fields in the same payload.
Consumers should replace the previously stored version of the event with the new one.
UPDATE message example
Delete behavior
Deletes use the DELETE action.
The message identifies an event that was previously sent and should now be removed.
For DELETE, only id, action, created_at, and sport_event are included inside data.
The payload field is omitted.
data.id refers to the previously sent event that is being deleted.
DELETE message example
What to do in your consumer
Treat
UPDATEas a replacement of the previous event version.Treat
DELETEas removal of the referenced event.Use
data.idas the stable event identifier across versions.
Related pages
Last updated
Was this helpful?