---
title: Clone & Configure a Template
url: https://docs.kaltura.com/docs/rich-media-cms-apis/integration/webhooks-clone-configure
---

## 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

```bash
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

```bash
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

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | System template ID to clone |
| `eventNotificationTemplate[objectType]` | string | Yes | Must match the source template type |
| `eventNotificationTemplate[name]` | string | No | Override display name |
| `eventNotificationTemplate[systemName]` | string | No | Unique system name (must be unique across your account) |
| `eventNotificationTemplate[url]` | string | No | Webhook URL (HTTP templates) |
| `eventNotificationTemplate[method]` | integer | No | 1=GET, 2=POST |
| `eventNotificationTemplate[signSecret]` | string | No | HMAC signing secret |
| `eventNotificationTemplate[secureHashingAlgo]` | integer | No | 1=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:

```bash
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"
```
