Copy template
copy_templateDuplicates a template, and everything in it, into a template of its own. This is how a template is copied -- not export_template followed by create_template, which is refused and was never the same thing: an Image, Video or read-only File in a document has no stored file behind it, so a copy built that way lost every one silently. Here the template is read on the server, so the copy gets every part of it. The copy has its own key and so does every task, field, parameter and rule in it, and each condition, due date anchor, task tag, parameter binding, Data Set control link, dynamic value binding (a field filled from another field, from a field of a Data Set record, or from a global value) and {{content.x}} token inside is repointed at the copy's own -- nothing in it reaches back into the original. Images, videos and read-only files are shared rather than duplicated, since both templates belong to one workspace. An archived template can be copied and the copy is live. A key acting as a member needs the Template.Creator permission and Edit on the library folder the template is in, which is what the app asks before its own Duplicate button will copy it; an administrator key and a workspace key may copy anything.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"templateKey": "<templateKey>",
"name": "<name>"
},
"name": "copy_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What to call the copy. Required. It may be the same as the original's -- two templates are allowed to share a name and the key tells them apart -- but a name somebody can pick out of the library is worth more. | |
| description | No | The copy's description. Omit it to keep the original's; send an empty string to give the copy none. | |
| templateKey | Yes | The key of the template to copy, from list_templates. Required. | |
| idempotencyKey | No | Optional. Send the same key again to retry this call safely: the retry gives back the first call's answer instead of doing the work twice. Use a new key whenever you mean a new operation. |