Skip to main content

Update a template

PATCH 

/v1/documents/templates/:id

update a template.

Request

Path Parameters

    id stringrequired

Body

    name string

    Possible values: <= 255 characters

    The template name

    slug string

    Possible values: <= 255 characters

    The template slug

    template string

    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...