Update a document template

PUT /api/v1/document-template/{documentTemplate_uuid}

Headers

  • X-PLANNR-ACCOUNT-UUID string

Path parameters

  • documentTemplate_uuid string Required
application/json

Body

  • name string

    The name of the document template.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • created_at string

      The timestamp of when the resource was created.

    • updated_at string

      The timestamp of when the resource was updated.

    • version integer

      The document builder version. Used for internal purposes only. Defaults to 3

    • name string

      The name of the document template.

    • required_dependants object

      The required dependant variables of the document template.

      Hide required_dependants attribute Show required_dependants attribute object
      • client-1 string
    • public_docx_url string

      The download URL of the DOCX content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_sfdt_url string

      The download URL of the SFDT (SyncFusion) content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_pdf_url string

      The download URL of the PDF content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_preview_url string

      The image preview URL of the template. This is intended for the user to preview the template before opening it. You can access this data via the API using the route in /api/v1.

PUT /api/v1/document-template/{documentTemplate_uuid}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/document-template/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 --data '{"name":"Welcome Template"}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "name": "Welcome Template"
}
Response examples (200)
{
  "name": "Welcome Template",
  "uuid": "3302f035-6f18-48f4-8576-806b5d6c6cd4",
  "version": 3,
  "created_at": "2025-06-25T15:10:44+01:00",
  "updated_at": "2025-06-25T15:10:44+01:00",
  "public_pdf_url": "https://api.plannrcrm.com/document-template/15d7a456-3e61-431c-9730-3edf7c36a777/content/pdf?plannr_account_uuid=48016326-a351-411b-a162-56a4336bd980",
  "public_docx_url": "https://api.plannrcrm.com/document-template/9c79a56d-71d3-4fe6-90ae-0ff04f4f96b9/content/docx?plannr_account_uuid=bec9eab1-644b-454c-beb7-86f7cd12de16",
  "public_sfdt_url": "https://api.plannrcrm.com/document-template/96ad9848-0a8d-4e61-a7c9-a14d9f4910c7/content/sfdt?plannr_account_uuid=18e29bf9-3f94-4dcd-a14c-642f354e38b7",
  "public_preview_url": "https://api.plannrcrm.com/document-template/ebe66757-fbd9-4c08-8cc8-f67791cf7dac/content/preview?plannr_account_uuid=639ae22d-b339-44f6-8713-af9ba6125f48",
  "required_dependants": {
    "client-1": "client"
  }
}