This object is used to create content templates.

interface ContentTemplateCreate {
    body: ContentTemplateBodyCreate;
    description?: string;
    labels?: LabelV1[];
    name: string;
    space?: null | {
        key: string;
    } & {
        [key: string]: unknown;
    };
    templateType: string;
}

Hierarchy

  • Record<string, unknown>
    • ContentTemplateCreate

Properties

The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. storage.

Note, editor2 format is used by Atlassian only. anonymous_export_view is the same as export_view format but only content viewable by an anonymous user is included.

description?: string

A description of the new template.

labels?: LabelV1[]

Labels for the new template.

name: string

The name of the new template.

space?: null | {
    key: string;
} & {
    [key: string]: unknown;
}

The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.

templateType: string

The type of the new template. Set to page.