For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTApply a template to text
        • POSTApply templates to text
        • POSTParse a template
        • POSTRender jinja template
        • POSTRender Jinja2 context with data cast
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceTemplate Builder

Render Jinja2 context with data cast

POST
http://localhost:3000/template_builder/templates/:name/renderJinja2TemplateWithCast
POST
/template_builder/templates/:name/renderJinja2TemplateWithCast
$curl -X POST http://localhost:3000/template_builder/templates/name/renderJinja2TemplateWithCast \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "renderedTemplate": "John was born in year 2000"
3}
Renders Jinja2 Context output with data cast.
Was this page helpful?
Previous

Create a single transformation

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

namestringRequired

Request

request body
templatestringOptional
variablesobjectOptional
castDataTypeenumOptionalDefaults to string
Allowed values:

Response

Rendered output template. Data type will be determined based on input castDataType.

Errors

500
Internal Server Error