Skip to main content

Create a template

POST 

/v1/documents/templates

Create a new template.

Request

Body

required

    name stringrequired

    Possible values: <= 255 characters

    The template name

    slug stringrequired

    Possible values: <= 255 characters

    The template slug

    template stringrequired

    The template content

    active boolean

    Default value: true

    disable template flag.

    description string

    Possible values: <= 255 characters

    The template description

    metadata

    object

    The template metadata

    property name* any

    The template metadata

    options

    object

    The template rendering options

    property name* any

    The template rendering options

    related_object string

    Possible values: [shipment, order, other]

    Default value: other

    The template related object

Responses

Schema

    id string

    A unique identifier

    name stringrequired

    Possible values: <= 255 characters

    The template name

    slug stringrequired

    Possible values: <= 255 characters

    The template slug

    template stringrequired

    The template content

    active boolean

    Default value: true

    disable template flag.

    description string

    Possible values: <= 255 characters

    The template description

    metadata

    object

    The template metadata

    property name* any

    The template metadata

    options

    object

    The template rendering options

    property name* any

    The template rendering options

    related_object string

    Possible values: [shipment, order, other]

    Default value: other

    The template related object

    object_type string

    Default value: document-template

    Specifies the object type

Loading...