Skip to content

Create Document

Create a new document record. Requires the DOCUMENTS feature flag and ADMIN, CREATE_DOCUMENT, or MANAGE_DOCUMENTS permissions.

Parameters

name * are required parametersdata typedescription
body.name*stringThe display name of the document
body.contentobjectThe document content/body
body.folderIdstringOptional folder to place the document in

Return Value

The created document record.

Examples

bash
curl -X PUT "https://app.wombat.software/api/{targetPath}/document" \
  -H "Content-Type: application/json" \
  -H "Authentication: Bearer ..." \
  -d '{"name": "Safety Policy 2024"}'

ENDPOINTS

put/api/{targetPath}/document