Summary
Apply templates to text
Description
Apply templates to parse text
Route
POST /template_builder/applyTemplates
Roles
admin
apiread
Parameters
Details Example Schema
Name
Type
Required
Description
text
array
yes
Array of text to parse
templates
array
yes
Array of template names used to parse the text
Copied to Clipboard
{
"text": [
"Template input text 1",
"Template input text 2",
"Template input text 3"
],
"templates": [
"Template name 1",
"Template name 2",
"Template name 3"
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"text": {
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"Template input text 1",
"Template input text 2",
"Template input text 3"
]
]
},
"templates": {
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"Template name 1",
"Template name 2",
"Template name 3"
]
]
}
},
"required": [
"text",
"templates"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
parsed
array
Parsed text based on the templates used
Copied to Clipboard
[
"Template output 1",
"Template output 2",
"Template output 3"
]
Copied to Clipboard
{
"title": "parsed",
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"Template output 1",
"Template output 2",
"Template output 3"
]
]
}