For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 UPDATE as a replacement of the previous event version.

  • Treat DELETE as removal of the referenced event.

  • Use data.id as the stable event identifier across versions.

The outer WebSocket envelope stays the same. Only the data.action and data content differ.

Last updated

Was this helpful?