Skip to main content

addonTemplateCreate

Creates a reusable survey or CTA template rather than a site add-on. Templates cannot contain nonempty audience targeting or activation URLs; an uploaded thumbnail is stored before saving. Requires add-on template management access.

addonTemplateCreate(
template: AddonTemplateCreateParams!
thumbnail: Upload
): AddonTemplate!

Arguments​

addonTemplateCreate.template ● AddonTemplateCreateParams! non-null input​

Reusable content and catalog metadata; use addonCreate to create a site add-on.

addonTemplateCreate.thumbnail ● Upload scalar​

Optional thumbnail file upload.

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.