Update a document template

PUT /api/v1/document-template/{documentTemplate_uuid}
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.

    • The timestamp of when the resource was created.

    • 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.

    • The required dependant variables of the document template.

      Additional properties are allowed.

    • 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.

    • 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.

    • 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.

    • 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 \
 -X PUT https://api.plannrcrm.com/api/v1/document-template/documentTemplate_uuid \
 -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":"Welcome Template"}'
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": "Welcome Template"
}
Response examples (200)
{
  "name": "Welcome Template",
  "uuid": "d2b9d80b-d3eb-46fb-82c7-fa28a963b83d",
  "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/e5710af2-cfae-4f14-af06-a6cac10b22fc/content/pdf?plannr_account_uuid=66cab923-aff7-4fcb-a96a-90c0d6c4837b",
  "public_docx_url": "https://plannr.valet/document-template/3b3fad5e-5d1a-4607-8e39-78c71d491c43/content/docx?plannr_account_uuid=21ecfc69-27d8-4e2f-9798-1189aab6b175",
  "public_sfdt_url": "https://plannr.valet/document-template/8ff0b6e7-9c30-46d1-a539-61780b1fc321/content/sfdt?plannr_account_uuid=e1a5ec5c-78a1-47ad-9779-05a50452eee8",
  "public_preview_url": "https://plannr.valet/document-template/9ce4598e-9e15-48d8-b5c2-a6c2c1928df2/content/preview?plannr_account_uuid=5e9dca11-7374-46fc-99eb-c4d6a1846a4d",
  "required_dependants": {
    "client-1": "client"
  }
}