Skip to main content

addonLatestTheme

Returns the theme JSON object from the most recently created add-on of a type at a site, preferring nonblank draft content. Returns null if no add-on or usable theme exists. Requires survey create access or CTA create access matching the type.

addonLatestTheme(
siteId: Int!
type: AddonType!
): JSON

Arguments​

addonLatestTheme.siteId ● Int! non-null scalar​

Site ID from sites.

addonLatestTheme.type ● AddonType! non-null enum​

Add-on type whose most recently created theme to reuse.

Type​

JSON scalar​

The json scalar type represents arbitrary JSON data.