Templates
Update a template
Update a template.
put/v1/templates/{key}
Path parameters
keystring required
The key of the template to update.
Request body
Example request
{
"name": "template_name",
"template_key": "template_key",
"columns": [
{
"label": "template_column_name",
"key": "template_column_key"
}
],
"validation_hooks": [
{
"name": "validation_hook_name",
"url": "https://example.com"
}
],
"hooks": {
"preparsing": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"postupload": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"postmapping": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"validation": [
{
"key": "hook_key",
"type": "code-postmapping"
}
]
}
}Response
Successful response
Example response
{
"name": "template_name",
"template_key": "template_key",
"columns": [
{
"label": "template_column_name",
"key": "template_column_key"
}
],
"validation_hooks": [
{
"name": "validation_hook_name",
"url": "https://example.com"
}
],
"hooks": {
"preparsing": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"postupload": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"postmapping": [
{
"key": "hook_key",
"type": "code-postmapping"
}
],
"validation": [
{
"key": "hook_key",
"type": "code-postmapping"
}
]
}
}