Skip to main content

addonTemplateEdit

Updates a reusable template by ID without changing its type. Templates cannot contain nonempty audience targeting or activation URLs; an optional upload replaces the thumbnail. Requires add-on template management access.

addonTemplateEdit(
template: AddonTemplateEditParams!
thumbnail: Upload
): AddonTemplate!

Arguments​

addonTemplateEdit.template ● AddonTemplateEditParams! non-null input​

Template ID from addonTemplatesList plus replacement content and catalog metadata.

addonTemplateEdit.thumbnail ● Upload scalar​

Optional replacement thumbnail upload; omit to retain the current thumbnail.

Type​

AddonTemplate object​

Reusable survey or CTA template with a resolved thumbnail URL and a nested permission block derived from the current session. Returned by addonTemplateDetail and addonTemplatesList.