Skip to main content
View as Markdown

External Events & CSV Import - Gamification

External Events & CSV Import​

Import scores from external systems (booth scans, external quiz platforms, physical activities) via CSV upload.

Parameters

ParameterTypeRequiredDescription
eventActionstringYes"delta" (add to existing score) or "upsert" (replace existing score)
csvFilefileYesCSV file upload. Must include userId, score, and eventType columns, plus any context fields referenced by rule conditions
# Delta mode — add to existing score
curl -X POST "$KALTURA_SCM_URL/event/sendExternalEventsFromCSV" \
-H "Authorization: Bearer $KALTURA_KS" \
-F "eventAction=delta" \
-F "csvFile=@scores.csv"

# Upsert mode — replace existing score
curl -X POST "$KALTURA_SCM_URL/event/sendExternalEventsFromCSV" \
-H "Authorization: Bearer $KALTURA_KS" \
-F "eventAction=upsert" \
-F "csvFile=@scores.csv"

CSV format: Must include userId, score, and eventType (matching rule condition) columns, plus any context fields referenced by rule conditions.

ModeDescription
deltaAdd to existing score (booth visit adds 50 points on top of current)
upsertReplace score (final quiz score overrides previous attempts)

The external rule type is required for the leaderboard to accept external events. Set metric: "score" so points come from the event's score field.