Headers
-
Content-Type
string -
Accept
string -
X-PLANNR-ACCOUNT-UUID
string
Path parameters
-
uuid
string Required
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 \
--request PUT 'https://api.plannrcrm.com/api/v1/document/uuid' \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Client Service Agreement","client_uuids":["4fd26dc7-ab25-4b9f-b23b-10fe25e468f4","7ead0294-68cb-4d0c-a6dd-651718e9ac4a"],"known_dependants":[{"client-1":"a160f6bd-edc8-43b2-ace8-295bc216ff0f"}]}'
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": [
"4fd26dc7-ab25-4b9f-b23b-10fe25e468f4",
"7ead0294-68cb-4d0c-a6dd-651718e9ac4a"
],
"known_dependants": [
{
"client-1": "a160f6bd-edc8-43b2-ace8-295bc216ff0f"
}
]
}
Response examples (200)
{
"name": "Welcome Template",
"uuid": "bfb709d1-3c24-4c98-873d-ef851012d4fd",
"status": "published",
"version": 3,
"created_at": "2025-06-17T14:20:20+01:00",
"updated_at": "2025-06-17T14:20:20+01:00",
"public_pdf_url": "https://plannr.valet/document/463d4f34-f149-49f5-b06f-149ee975b6b1/content/pdf?plannr_account_uuid=be48f283-58b9-4b3f-bb8b-f790283575c6",
"public_docx_url": "https://plannr.valet/document/c2ba7bc9-5008-43ec-949e-b5abbd60755e/content/docx?plannr_account_uuid=5ab285c2-59fe-46b2-9da2-6d2d9a54a683",
"public_sfdt_url": "https://plannr.valet/document/f086fd22-73f5-4dc2-bfab-bc9695546cd3/content/sfdt?plannr_account_uuid=7444e8b2-3393-4372-83d2-a31880e14de1",
"known_dependants": {
"client-1": "7f2f285e-e1c4-4daa-a9e5-0d91e1e58596"
},
"public_preview_url": "https://plannr.valet/document/614ad636-d5e4-489b-829d-be07715cae96/content/preview?plannr_account_uuid=c3771518-bded-469c-9ac0-05c002a5cf8c",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}