Skip to main content
View as Markdown

Clone & Configure a Template - Integration

Clone & Configure a Template​

Cloning creates a copy of a system template on your account. Set your endpoint URL and signing secret at clone time.

Clone an HTTP Template​

curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/clone" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=$SYSTEM_TEMPLATE_ID" \
-d "eventNotificationTemplate[objectType]=KalturaHttpNotificationTemplate" \
-d "eventNotificationTemplate[name]=Entry Ready Webhook" \
-d "eventNotificationTemplate[systemName]=MY_ENTRY_READY" \
-d "eventNotificationTemplate[url]=https://myapp.example.com/webhooks/entry-ready" \
-d "eventNotificationTemplate[method]=2" \
-d "eventNotificationTemplate[signSecret]=my-webhook-secret" \
-d "eventNotificationTemplate[secureHashingAlgo]=2"

Clone an Email Template​

curl -X POST "$KALTURA_SERVICE_URL/service/eventnotification_eventnotificationtemplate/action/clone" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "id=842" \
-d "eventNotificationTemplate[objectType]=KalturaEmailNotificationTemplate" \
-d "eventNotificationTemplate[name]=Category Member Added Email" \
-d "eventNotificationTemplate[systemName]=MY_CATUSER_ADDED"

Clone Parameters​

ParameterTypeRequiredDescription
idintegerYesSystem template ID to clone
eventNotificationTemplate[objectType]stringYesMust match the source template type
eventNotificationTemplate[name]stringNoOverride display name
eventNotificationTemplate[systemName]stringNoUnique system name (must be unique across your account)
eventNotificationTemplate[url]stringNoWebhook URL (HTTP templates)
eventNotificationTemplate[method]integerNo1=GET, 2=POST
eventNotificationTemplate[signSecret]stringNoHMAC signing secret
eventNotificationTemplate[secureHashingAlgo]integerNo1=SHA1, 2=SHA256, 3=SHA384, 4=SHA512, 5=MD5

The cloned template inherits the source template's eventType, eventObjectType, and eventConditions. These fields are fixed at clone time.

Activate the Template​

Cloned templates start in DISABLED status. Activate after verifying configuration:

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"