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.

    • 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": "5bda7f6b-b1b4-4556-8783-d02c848adcd6",
  "version": 3,
  "created_at": "2024-10-16T11:10:15+01:00",
  "updated_at": "2024-10-16T11:10:15+01:00",
  "public_pdf_url": "https://plannr.valet/document-template/b4c8dde2-700a-4c25-87af-12bac7b9ff3a/content/pdf?plannr_account_uuid=6e04dba3-3459-4669-8db0-534adfc86387",
  "public_docx_url": "https://plannr.valet/document-template/7f364a26-6c6e-4273-aae7-0fd00eec0e41/content/docx?plannr_account_uuid=b89a15b6-fcc0-427f-b86d-339d142fdfe3",
  "public_sfdt_url": "https://plannr.valet/document-template/df6ff6b2-c432-4276-9005-a1f134b50229/content/sfdt?plannr_account_uuid=a39c99a8-2083-4dea-ae3e-8d93c975cfd6",
  "public_preview_url": "https://plannr.valet/document-template/da405d43-4ff9-41e2-9374-eb488bc3cde2/content/preview?plannr_account_uuid=07f3c241-846c-46df-bece-d9025211a857",
  "required_dependants": {
    "client-1": "client"
  }
}