Skip to content

Variable: ContentTemplateBodyCreateSchema

ts
const ContentTemplateBodyCreateSchema: ZodObject<{
  anonymous_export_view: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  atlas_doc_format: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  editor: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  editor2: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  export_view: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  storage: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  styled_view: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  view: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
  wiki: ZodOptional<ZodObject<{
     representation: ZodCustom<
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
        | "plain", 
        | "raw"
        | "storage"
        | "view"
        | string & object
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format"
       | "plain">;
     value: ZodString;
  }, $loose>>;
}, $loose>;

Defined in: src/v1/models/contentTemplateBodyCreate.ts:12

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.