Update a document
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body
-
name string
The name of the document.
-
client_uuids array[string]
An array containing the client uuids that should be sent the document when it is built.
-
known_dependants array[string]
Optional: The document variable dependants. Used to swap variables out for real data.
PUT
/api/v1/document/{uuid}
curl \
-X PUT https://api.plannrcrm.com/api/v1/document/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":"Client Service Agreement","client_uuids":["779b6f44-f8c5-48d7-a06f-e0005f021e1e","499fc8c9-ad62-43a0-b4fb-d6de456db8ce"],"known_dependants":[{"client-1":"a72de722-1c41-4ccf-8982-7c8ea658bcbf"}]}'
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",
"client_uuids": [
"779b6f44-f8c5-48d7-a06f-e0005f021e1e",
"499fc8c9-ad62-43a0-b4fb-d6de456db8ce"
],
"known_dependants": [
{
"client-1": "a72de722-1c41-4ccf-8982-7c8ea658bcbf"
}
]
}
Response examples (200)
{
"name": "Welcome Template",
"uuid": "47fe3abb-99ae-487d-b264-73e91f0f6040",
"status": "published",
"version": 3,
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"public_pdf_url": "https://plannr.valet/document/5e1519c2-37af-4f8f-9fe9-bf3279a3c027/content/pdf?plannr_account_uuid=eb2c9c8b-1eec-45b8-83d7-374d7e330285",
"public_docx_url": "https://plannr.valet/document/094d8384-263f-4304-8dd4-cd9a7f50b810/content/docx?plannr_account_uuid=0ab8e602-8654-4e2e-9463-bc1d2cfc8f92",
"public_sfdt_url": "https://plannr.valet/document/a3325563-5323-4dbd-ad2a-25f20ce3c0c9/content/sfdt?plannr_account_uuid=2c3f6ee8-b425-4de1-b57d-2a5ef42ddc12",
"known_dependants": {
"client-1": "eb1a88e6-44a0-4fe2-b208-b5c8ceb17186"
},
"public_preview_url": "https://plannr.valet/document/0ec43b65-e51f-4b7f-84e7-6ddbe0663aec/content/preview?plannr_account_uuid=c998bb06-6a69-4b3d-b7e7-b7892d38bb05",
"required_dependants": {
"client-1": "client"
}
}