Skip to main content
POST
Upload a file as an ISMS document's content

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

id
string
required

Body

application/json
fileName
string
required

Original filename. Stored as-is for display and download; only a sanitised copy is used in the storage key.

Maximum string length: 255
Example:

"ISMS Scope Statement.docx"

fileType
enum<string>
required

MIME type of the file. Only PDF and DOCX are accepted — an uploaded file is the document itself and is never converted.

Available options:
application/pdf,
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Example:

"application/pdf"

fileData
string

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.

Example:

"JVBERi0xLjcKJUVPRgo="

s3Key
string

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.

Example:

"org_abc123/uploads/document/1735000000000-scope.docx"

Response

200

File attached; refreshed ISMS document