Publish a document
This will make the document un-editable and will upload a DOCX and PDF file to the client.
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
POST
/api/v1/document/{document_uuid}/publish
curl \
-X POST https://api.plannrcrm.com/api/v1/document/document_uuid/publish \
-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}"
Response examples (200)
{
"name": "Welcome Template",
"uuid": "f65ac5fb-32c8-49c8-8ff6-d4329df4d480",
"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/e59e33de-a94e-4452-8cd4-2e440c1b8f9c/content/pdf?plannr_account_uuid=1376709b-7940-4848-9c29-00f8b3c4f71e",
"public_docx_url": "https://plannr.valet/document/0461d309-66d4-4eaa-a7f6-963a5e9baad5/content/docx?plannr_account_uuid=eceb073f-80be-4cd5-b688-f15693d2162b",
"public_sfdt_url": "https://plannr.valet/document/e09c6686-e44e-4d2f-925d-2d6e1361c288/content/sfdt?plannr_account_uuid=926d5e07-d1c9-448d-8932-e05a6305fdf7",
"known_dependants": {
"client-1": "cea89293-12ca-4c4e-8265-af13b19677e8"
},
"public_preview_url": "https://plannr.valet/document/3e7fd42f-c857-431f-8b51-bcb351262e14/content/preview?plannr_account_uuid=e992b076-4fd3-48e6-8369-f42e57eb2306",
"required_dependants": {
"client-1": "client"
}
}