Skip to main content
⚠️ Important: Always sync Schema changes before pushing Events. If the schema referenced in an event is not available in the target workspace, it will result in validation errors during sync.
Push event-to-schema mappings from a local event_schema_mapping.json file to a workspace. Reads the mapping file from the specified directory.

Syntax

suprsend event push [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-d, --dir stringDirectory containing event files./suprsend/event
-j, --json stringEvents payload as a JSON object with an "events" array, matching the format produced by pull

Example

# Push events from default directory
suprsend event push

# Push events from custom directory
suprsend event push --dir events

# Push events to production workspace
suprsend event push --workspace production

# Push events inline via JSON
suprsend event push --json '{"events":[{"name":"user_signed_up","description":"Triggered when user signs up"}]}'