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": "0de9cee6-2a60-4511-8054-ebfe06c0b67f",
"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/ef67c426-3bd6-4d71-925c-38015354a42c/content/pdf?plannr_account_uuid=95c88698-fa70-4d90-a4fd-a9eb49e90a43",
"public_docx_url": "https://plannr.valet/document/c272daee-3dbb-4f1c-be70-33ec6d7e01f6/content/docx?plannr_account_uuid=3f11d7a8-4b7f-42a0-bf9b-28c8f12eb20f",
"public_sfdt_url": "https://plannr.valet/document/c954838d-e9c8-4092-8647-7f9c19a445d6/content/sfdt?plannr_account_uuid=02598b6f-0cee-47c6-9b0d-ae2ff10fac28",
"known_dependants": {
"client-1": "97cce4e8-2842-4c78-aba0-2f4d1ce9fa53"
},
"public_preview_url": "https://plannr.valet/document/dd159c37-096f-4444-be54-34dbd28b2ded/content/preview?plannr_account_uuid=b2a6646b-eb5e-46b7-9d47-eba563f72409",
"required_dependants": {
"client-1": "client"
}
}