Automette docs

Upload or replace a Word template's body

PUT
/api/v1/templates/{id}/docx

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

id*string

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v1/templates/string/docx" \  -H "Content-Type: application/json" \  -d '{    "content_base64": "string"  }'
{  "id": "cm4tpl8e20001js04xq2v9k3m",  "version": 2,  "fields": [    {      "key": "name",      "type": "text"    },    {      "key": "amount",      "type": "text"    }  ],  "added": [    "amount"  ],  "removed": [],  "thumbnail_url": "https://files.automette.com/templates/cm4tpl8e20001js04xq2v9k3m/thumbnail.png?v=1756600000000",  "preview_pdf_url": "https://docuagen.s3.amazonaws.com/..."}