cURL
curl --request POST \ --url https://pdfs.platform.arb.inc/templates/upload-html \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data @- <<EOF { "documentID": "employmentAgreement", "html": "<string>", "css": "body { font-family: 'Times New Roman'; font-size: 12pt; }" } EOF
"successfully uploaded HTML template"
Uploads HTML and CSS as a template for a given document. Templates are stored in the database and rendered to PDF using Chrome.
access token
The ID of the template.
"employmentAgreement"
Optional CSS styles for the template.
"body { font-family: 'Times New Roman'; font-size: 12pt; }"
HTML template successfully uploaded.
The response is of type string.
string