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":["96865a46-3e17-4e8e-a399-248f1b7458ac","d7104c98-b08b-459d-b11f-f04c4a027e49"],"known_dependants":[{"client-1":"238aed94-14e3-4705-8b6f-e2d16cb16274"}]}'
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": [
"96865a46-3e17-4e8e-a399-248f1b7458ac",
"d7104c98-b08b-459d-b11f-f04c4a027e49"
],
"known_dependants": [
{
"client-1": "238aed94-14e3-4705-8b6f-e2d16cb16274"
}
]
}
Response examples (200)
{
"name": "Welcome Template",
"uuid": "3ca97e0a-f0d1-4e9f-8ece-332cf0a05709",
"status": "published",
"version": 3,
"created_at": "2025-06-05T11:39:40+01:00",
"updated_at": "2025-06-05T11:39:40+01:00",
"public_pdf_url": "https://plannr.valet/document/1273ecc4-3331-4dcf-b4aa-957b02194004/content/pdf?plannr_account_uuid=0e1b8b73-97d6-4cbf-a57a-ce17dafd436e",
"public_docx_url": "https://plannr.valet/document/3fed0ea3-9ed8-4bf8-b81f-d09a9e99ed09/content/docx?plannr_account_uuid=a5e72535-a088-4c9b-82d9-a830c26430b3",
"public_sfdt_url": "https://plannr.valet/document/384bde37-d294-4907-80ab-beda1a564879/content/sfdt?plannr_account_uuid=d3ec28f2-a976-4fdc-86c6-ed66ef5c349d",
"known_dependants": {
"client-1": "025e4a2c-731b-450c-9683-51359de3f576"
},
"public_preview_url": "https://plannr.valet/document/81aa5ab6-64b4-408e-8bb9-16811b370811/content/preview?plannr_account_uuid=0afb5aa7-c0c0-4a89-95bd-33cdc8179a53",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}