Update a template
PATCH/v1/documents/templates/:id
update a template.
Request
Path Parameters
- application/json
Body
Possible values: <= 255 characters
The template name
Possible values: <= 255 characters
The template slug
The template content
Default value: true
disable template flag.
Possible values: <= 255 characters
The template description
metadata
object
The template metadata
The template metadata
options
object
The template rendering options
The template rendering options
Possible values: [shipment
, order
, other
]
Default value: other
The template related object
Responses
- 200
- 400
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
A unique identifier
Possible values: <= 255 characters
The template name
Possible values: <= 255 characters
The template slug
The template content
Default value: true
disable template flag.
Possible values: <= 255 characters
The template description
metadata
object
The template metadata
The template metadata
options
object
The template rendering options
The template rendering options
Possible values: [shipment
, order
, other
]
Default value: other
The template related object
Default value: document-template
Specifies the object type
{
"id": "string",
"name": "string",
"slug": "string",
"template": "string",
"active": true,
"description": "string",
"metadata": {},
"options": {},
"related_object": "other",
"object_type": "document-template"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}