This method changes the name, the subject (title) and the preheader of several existing templates at once,
each with its own values. Only the passed fields change; the content of the template stays as it is.
- A field that is not passed (or is null) is kept.
- An empty
titleorpreheaderclears it.namecannot be empty and is up to 200 characters. - The preheader is plain text: markup in it is stored as text.
- Up to 500 items in one request; an id may appear once.
The update runs in the background: the response carries an operationId, and the outcome — which templates
were updated and why the others were not — is read with Get the status of an operation within 15 minutes.
A template is not updated, and is listed in the outcome with a reason, when it is not found in the project
(NOT_FOUND, also for a template of another project), is a draft (DRAFT), is a translated version
(TRANSLATION_VERSION), is opened in the editor right now (OPENED_IN_EDITOR — repeat the request later),
is passed more than once (DUPLICATE_ID), or could not be saved (UPDATE_FAILED).
400The request is invalid (no items, more than 500 items, a blank name, an item that changes nothing); nothing is updated
409Some of the templates are being changed by another bulk operation right now; nothing is updated, repeat the request later
