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":["1151f43b-6e83-4e37-bd82-297ce0c3a108","4d08390f-bec6-4663-aedf-cfbdda906f73"],"known_dependants":[{"client-1":"102142ba-b3c3-4afb-9a10-11868c70aaaa"}]}'
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": [
"1151f43b-6e83-4e37-bd82-297ce0c3a108",
"4d08390f-bec6-4663-aedf-cfbdda906f73"
],
"known_dependants": [
{
"client-1": "102142ba-b3c3-4afb-9a10-11868c70aaaa"
}
]
}
Response examples (200)
{
"name": "Welcome Template",
"uuid": "f5c60238-809b-4c76-9514-5ee8211019ca",
"status": "published",
"version": 3,
"created_at": "2024-11-20T13:24:02+00:00",
"updated_at": "2024-11-20T13:24:02+00:00",
"public_pdf_url": "https://plannr.valet/document/665f5a83-3186-49ab-9236-053f7ab2315e/content/pdf?plannr_account_uuid=bde8c018-b117-4796-ab16-83e2c440b101",
"public_docx_url": "https://plannr.valet/document/2bb78277-775e-4115-8eec-081d3c5a4b50/content/docx?plannr_account_uuid=1bb9af5b-7a7a-4e37-acb6-7d3d06cfbec9",
"public_sfdt_url": "https://plannr.valet/document/c4a68f17-24f7-4b45-b84a-083ab82246f6/content/sfdt?plannr_account_uuid=7a763366-13cb-4679-9c64-2097f46fa3b8",
"known_dependants": {
"client-1": "cf9f6a20-5ae7-4d96-866a-466dbc5b5c00"
},
"public_preview_url": "https://plannr.valet/document/a2721081-40ef-46a9-80fb-49451e9e7b4b/content/preview?plannr_account_uuid=1f532ac9-167e-44cd-9a4b-12c7c8968415",
"required_dependants": {
"client-1": "client"
}
}