Document

Upload documents to a space ID

POST
/api/v1/document/upload/{spaceId}
/api/v1/document/upload/{spaceId}

The Authorization access token

Authorization

Authorization
Required
<token>

Please enter a valid access token

In: header

Request Body

application/jsonOptional

The file data to upload

fileName
Required
string

Minimum length: 1

fileType
Required
string

Minimum length: 1

fileSize
Required
integer

Format: "int64"

fileData
Required
string

Minimum length: 1

Path Parameters

spaceId
Required
string

The space ID to attach this document to

curl -X POST "https://example.com/api/v1/document/upload/string" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "fileName": "string",
    "fileType": "string",
    "fileSize": 0,
    "fileData": "string"
  }'

OK