Skip to main content
POST
/
documents
{
  "updatedTime": "<string>",
  "metadata": {},
  "retentionInDays": 2,
  "updatedBy": "<string>",
  "description": "<string>",
  "createdBy": "<string>",
  "name": "<string>",
  "createdTime": "<string>",
  "documentId": "<string>",
  "contentMD5": "<string>",
  "agentRunId": "<string>",
  "content": "<string>",
  "groundTruth": [
    {
      "label": "<string>",
      "value": "<string>",
      "pages": [
        123
      ],
      "confidence": 0.5
    }
  ],
  "consentId": "<string>",
  "datasetId": "<string>",
  "fileUrl": "<string>",
  "contentType": "application/pdf",
  "annotationFileUrl": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Content-Type
string
required

Body

application/json

The body is of type unknown.

Response

200 response

updatedTime
string | null
required
metadata
object
required
retentionInDays
integer
required
Required range: x >= 1
updatedBy
string | null
required
Maximum string length: 4096
description
string | null
required
Maximum string length: 4096
createdBy
string
required
Maximum string length: 4096
name
string | null
required
Maximum string length: 4096
createdTime
string
required
documentId
string
required
contentMD5
string | null
Maximum string length: 4096
agentRunId
string | null
content
string | null
Required string length: 1 - 6250000
groundTruth
object[]
datasetId
string
fileUrl
string | null
contentType
enum<string> | null
Available options:
application/pdf,
image/jpeg,
image/png,
image/tiff,
image/webp,
message/rfc822
annotationFileUrl
string | null