Clone an existing Forward template.
HTTP 201 Created
Returns the newly created Template object.
Request 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. |
Request body
| 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 Created
Response fields
Returns the newly created Template object.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid clone request. |
| 401 | TOKEN_INVALID | Missing or invalid PAT. Returns {"code":"TOKEN_INVALID","message":"missing authorization token"} when the Authorization header is absent, or {"code":"TOKEN_INVALID","message":"invalid pt-token"} when the PAT is 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.