Create a document template
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
POST /api/v1/document-template
curl \
-X POST https://api.plannrcrm.com/api/v1/document-template \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
-d '{"name":"Client Service Agreement"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement"
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "7de0b161-709f-4791-9129-d7b79c45c041",
"version": 3,
"created_at": "2024-11-20T13:24:02+00:00",
"updated_at": "2024-11-20T13:24:02+00:00",
"public_pdf_url": "https://plannr.valet/document-template/46d5a51a-5db3-4113-bab9-c938ef2c730d/content/pdf?plannr_account_uuid=b34a6238-5b50-4575-9487-86850dcb8ddd",
"public_docx_url": "https://plannr.valet/document-template/b36ada22-eeaa-4796-9968-3f403914a4db/content/docx?plannr_account_uuid=0d518f14-df62-4b7d-b87a-e56b8f96e5b0",
"public_sfdt_url": "https://plannr.valet/document-template/cb029895-3605-4faa-9069-3375d0f8f387/content/sfdt?plannr_account_uuid=90f6e615-fc7b-4be8-900c-c0ae6faef8c4",
"public_preview_url": "https://plannr.valet/document-template/aad28bfa-496c-4c26-b4b3-2d548718cfeb/content/preview?plannr_account_uuid=6cc0865c-f222-4ae7-b852-0f3f9de09b06",
"required_dependants": {
"client-1": "client"
}
}