Body
application/json
Response
Successfully rendered document body.
The rendered document body.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.templates.render_document(
slug="slug",
variables={
"foo": {
"slug": "slug",
"type": "template",
"variables": {
"foo": "bar"
},
}
},
)
print(response.body)
{
"body": "<any>"
}
Renders a document body from a template slug and variables and returns the JSON content. Variables can be strings or arrays of objects for table data.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.templates.render_document(
slug="slug",
variables={
"foo": {
"slug": "slug",
"type": "template",
"variables": {
"foo": "bar"
},
}
},
)
print(response.body)
{
"body": "<any>"
}
Successfully rendered document body.
The rendered document body.