POST /api/v1/forward/templates/{template_id}/clone
Creates a new template by copying the source template’s agent configuration and session defaults.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Content-Type | Yes | application/json |
Idempotency-Key | No | Optional idempotency key for unsafe requests. |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | Yes | Source Forward Template ID. |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | New template name. If omitted, the source name plus Copy is used. |
description | string | No | New template description. If omitted, the source description is used. |
Example request
Example response
HTTP 201 CreatedResponse fields
Returns the newly created Template object.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid clone request. |
| 401 | authentication_error | PAT invalid or expired. |
| 404 | not_found_error | Source template does not exist. |
| 409 | conflict_error | New template name already exists. |
Notes
- Clone generates a new Template ID.
- Cloning does not copy Identity Config records.