Templates
Duplicate Template
Copies the source Template's language, type, channel, and highest-numbered version into unpublished version 1 of a new Template. Components, Files, and approval intent are copied. Version history, publication state, and provider approval records are not copied. The name defaults to <source name> (copy); the key defaults to a collision-resistant derivative of the source key.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Unique identifier for the resource.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
name?string
Human-readable name of the resource.
Length
1 <= lengthkey?string
Stable key used to identify the resource.
Length
1 <= lengthResponse Body
application/json
curl -X POST "https://api.getmateo.com/v1/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/duplicate" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "key": "string", "language": "string", "type": "authentication", "request_approvals": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}