Change a template
put/mail/templates/{id}
Change a template. This saves a new version; earlier versions stay and can be restored.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
campaigns:write- Graphql
Mutation.campaignsMailTemplateUpdate- Sdk
mail.templates.update- Cli
mail template-update
Parameters
- idstringrequiredIn the path
Request bodyapplication/json, required
- namestringAt most 120 characters.
- kindstringOne of: transactional, marketing, partial.
- languagestringen, dv, ar, ...; sets the direction and footer words of group mail At most 20 characters.
- subjectstringAt most 998 characters.
- htmlstringAt most 1000000 characters.
- textstringAt most 1000000 characters.
- testDataobjectSample values used by the preview
- notestringAt most 200 characters.
- sharestringorganization: every project of the organization can use it One of: project, organization.
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring