This object is used when creating or updating content.

interface ContentBodyCreate {
    representation:
        | "raw"
        | "view"
        | "storage"
        | "plain"
        | "export_view"
        | "styled_view"
        | "editor"
        | "editor2"
        | "anonymous_export_view"
        | "wiki"
        | "atlas_doc_format";
    value: string;
}

Hierarchy

  • Record<string, unknown>
    • ContentBodyCreate

Properties

representation:
    | "raw"
    | "view"
    | "storage"
    | "plain"
    | "export_view"
    | "styled_view"
    | "editor"
    | "editor2"
    | "anonymous_export_view"
    | "wiki"
    | "atlas_doc_format"

The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

value: string

The body of the content in the relevant format.