PUT
/api/v1/document/{uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/document/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Client Service Agreement","client_uuids":["0b2d1d1e-609e-4011-9db2-da5e006ae0f9","03c1cb53-2c48-4377-be6d-719bef2d4185"],"known_dependants":[{"client-1":"8745d2f7-98b3-4448-81d5-b3736911d005"}]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"0b2d1d1e-609e-4011-9db2-da5e006ae0f9",
"03c1cb53-2c48-4377-be6d-719bef2d4185"
],
"known_dependants": [
{
"client-1": "8745d2f7-98b3-4448-81d5-b3736911d005"
}
]
}
Response examples (200)
{
"name": "Welcome Template",
"uuid": "9fadf63f-21f0-42fe-a0a3-458d04e653d1",
"status": "published",
"version": 3,
"created_at": "2025-06-25T15:10:44+01:00",
"updated_at": "2025-06-25T15:10:44+01:00",
"public_pdf_url": "https://api.plannrcrm.com/document/98bef748-cdc9-4374-ad04-c7a1ca5bc9ab/content/pdf?plannr_account_uuid=986394f8-bfe9-405c-a69d-2015de571af9",
"public_docx_url": "https://api.plannrcrm.com/document/1ba14017-7328-47ef-9188-f87af297f0d4/content/docx?plannr_account_uuid=e6e06219-950b-44f1-ab74-6fe5e6587ce8",
"public_sfdt_url": "https://api.plannrcrm.com/document/4658e7c6-11af-4475-af70-4a1dcbca815f/content/sfdt?plannr_account_uuid=f63fc9fd-fd4e-4d41-a2de-0977d73dad1a",
"known_dependants": {
"client-1": "7ab8ea2d-d08e-4e1b-9072-a3f9d8577abb"
},
"public_preview_url": "https://api.plannrcrm.com/document/486a9304-4c03-4642-9081-de6fb29825ff/content/preview?plannr_account_uuid=05e95293-58bf-4bbf-a1dd-f67ba4780339",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}