Template Management - Integration
Template Management
Get a Template
curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/get" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=$TEMPLATE_ID"
List Your Templates
curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/list" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "filter[objectType]=KalturaEventNotificationTemplateFilter" \
-d "filter[typeEqual]=httpNotification.Http" \
-d "filter[orderBy]=-createdAt" \
-d "pager[objectType]=KalturaFilterPager" \
-d "pager[pageSize]=25" \
-d "pager[pageIndex]=1"
| Filter Field | Description |
|---|---|
typeEqual | httpNotification.Http or emailNotification.Email |
statusEqual | 1=DISABLED, 2=ACTIVE |
idEqual | Exact template ID |
systemNameEqual | System name match |
orderBy | +createdAt, -createdAt, +updatedAt, -updatedAt, +id, -id |
Update a Template
curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/update" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=$TEMPLATE_ID" \
-d "eventNotificationTemplate[objectType]=KalturaHttpNotificationTemplate" \
-d "eventNotificationTemplate[url]=https://myapp.example.com/webhooks/v2" \
-d "eventNotificationTemplate[signSecret]=new-secret"
Fields not included remain unchanged.
Activate / Disable
curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/updateStatus" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=$TEMPLATE_ID" \
-d "status=2"
Status values: 1=DISABLED, 2=ACTIVE. This is the only way to change status — the update action does not accept status changes.
Delete a Template
curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/delete" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=$TEMPLATE_ID"
Permanently removes the template.