Updates a template with a given ID by passing new values in the request body. Any property that is not provided will be left unchanged. In the response, it returns all details of the updated template including properties that were not changed.
The unique ID of the private template. It can be retrieved from the List templates endpoint.
Example: 164
Query parameters
Body
namestring
The new name of the template. The name does not need to be unique.
blueprintobject
The full blueprint of the template. It contains information about the general setup and all included apps and modules, and their settings.
schedulingobject
The scheduling details of the template.
controllerobject
The controller of the template. This property refers to wizards that can be added to each module in the template from the Make interface. The wizards contain short instructions for other users explaining how to use the template step by step.
Response
Successful response
Body
templatearray of object
Request
constresponse=awaitfetch('https://eu1.make.com/api/v2/templates/{templateId}', { method:'PATCH', headers: {"Content-Type":"application/json" }, body:JSON.stringify({"name":"Renamed template", "blueprint": "{\"flow\":[{\"id\":1,\"module\":\"http:ActionGetFile\",\"version\":3,\"parameters\":{\"handleErrors\":false},\"mapper\":{\"url\":\"https://google.com\",\"method\":\"get\",\"shareCookies\":false},\"metadata\":{\"designer\":{\"x\":0,\"y\":0},\"parameters\":[{\"name\":\"handleErrors\",\"label\":\"Evaluate all states as errors (except for 2xx and 3xx )\",\"type\":\"boolean\",\"required\":true}],\"expect\":[{\"name\":\"url\",\"label\":\"URL\",\"type\":\"url\",\"required\":true},{\"name\":\"method\",\"label\":\"Method\",\"type\":\"hidden\"},{\"name\":\"shareCookies\",\"label\":\"Share cookies with other HTTP modules\",\"type\":\"boolean\",\"required\":true}]}}],\"metadata\":{\"version\":1,\"scenario\":{\"roundtrips\":1,\"maxErrors\":3,\"autoCommit\":true,\"autoCommitTriggerLast\":true,\"sequential\":false,\"confidential\":false,\"dataloss\":false,\"dlq\":false,\"freshVariables\": false},\"designer\":{\"orphans\":[]}}}",
"scheduling":"{\"type\":\"indefinitely\",\"interval\":900}","controller":"{\"modules\":{},\"name\":\"New template\",\"idSequence\":2}" }),});constdata=awaitresponse.json();