Upload a file as an ISMS document's content | Comp AI API
Attaches a customer-supplied PDF or DOCX as the document’s content. Does not switch the document to it — call PATCH content-source with ‘uploaded’ for that.
Authorizations
API key for authentication
Path Parameters
Body
Original filename. Stored as-is for display and download; only a sanitised copy is used in the storage key.
255"ISMS Scope Statement.docx"
MIME type of the file. Only PDF and DOCX are accepted — an uploaded file is the document itself and is never converted.
application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document "application/pdf"
Base64-encoded file contents, for the web UI and direct callers. AI/MCP clients should upload via /v1/uploads/presign (purpose=document) and pass s3Key instead. Provide exactly one of fileData or s3Key.
"JVBERi0xLjcKJUVPRgo="
Key of a file already uploaded via /v1/uploads/presign (purpose=document). The server reads the bytes from storage. Provide exactly one of fileData or s3Key.
"org_abc123/uploads/document/1735000000000-scope.docx"
Response
File attached; refreshed ISMS document

