Documents

Upload a new document version (draft)

Uploads a new document version as a draft. Send the file base64-encoded (≤4 MB raw). Writes audit-log row v1_upload_document.

Role gate: owner / admin.

Scope: documents:write.

post/api/v1/companies/{companyId}/documents/{documentId}/versions/upload

Request

  • Base URL
    https://comply.strac.io
  • Auth
    HTTP bearer

Path parameters

companyIdstring required

Your organization id.

documentIdstring required

Document id.

Request body

fileNamestring required

File name with extension (pdf/docx/xlsx/pptx/doc/xls/png/jpeg/gif/webp/csv/txt/md/json/zip).

fileTypestring required

MIME type, e.g. application/pdf or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

fileContentstring required

Base64-encoded file bytes, ≤4 MB raw.

commentsstring

Optional changelog note.

Response

Upload a new document version (draft)

Changes

No recorded changes to this operation across all 1 revision of this API.