Editing Events
Modify existing event configuration with backwards compatibility.
Once you’ve successfully configured Audit Logs in the WorkOS Dashboard and begun emitting events, how do you go about modifying an event schema without breaking your existing integrations? This is where versioning comes into place. When you make a modification to an existing schema it will create a new version rather than overwriting the existing schema.
The reason for this behavior is to ensure backwards compatibility. Schema configuration is immutable to prevent you from accidentally making changes that are incompatible with events that are already being emitted from your application. Rather you must first create a new version of the schema, and then explicitly emit events for that version leveraging the event version field.
In the WorkOS Dashboard, open Audit Logs and select the event whose schema you would like to modify.
You can edit both the targets associated with the event and the metadata JSON schema. Select Save as new version to create a new version of the event schema.
