Update description and/or published version of a template.
POST {{baseUrl}}/templates/:tmpl_id
Updates the description and/or published version of the template with the given id. To update the template's html, create a new version of the template.
Request Body
[{"name"=>"description", "value"=>"Template Update", "datatype"=>"string"}, {"name"=>"published_version", "value"=>"vrsn_56fd7d06cef302d", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Idempotency-Key | string | A string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our implementation guide. | |
Content-Type | string |
RESPONSES
status: OK
{"id":"tmpl_c94e83ca2cd5121","description":"Test Template","versions":[{"id":"vrsn_362184d96d9b0c9","description":"Test Template","html":"\u003chtml\u003eHTML for {{name}}\u003c/html\u003e","date_created":"2017-11-07T22:56:10.962Z","date_modified":"2017-11-07T22:56:10.962Z","object":"version"}],"published_version":{"id":"vrsn_362184d96d9b0c9","description":"Test Template","html":"\u003chtml\u003eHTML for {{name}}\u003c/html\u003e","date_created":"2017-11-07T22:56:10.962Z","date_modified":"2017-11-07T22:56:10.962Z","object":"version"},"metadata":{},"date_created":"2017-11-07T22:56:10.962Z","date_modified":"2017-11-07T22:56:10.962Z","object":"template"}