Skip to main content

addonContentContract

Returns the JSON Schema (schema) and a representative content object (example) for add-on content and draftContent of the requested type; contractRevision identifies that contract. JSON-encode the object before sending it as content. The addon-draft-create skill is the long-form authoring reference. Requires survey create access or CTA create access matching the type.

addonContentContract(
type: AddonType!
): AddonContentContract!

Arguments​

addonContentContract.type ● AddonType! non-null enum​

SURVEY or CTA; selects the schema and example.

Type​

AddonContentContract object​

Content authoring contract returned by addonContentContract; schema and example are JSON objects, not strings.