Skip to main content
POST
Upload a text document to the Library

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required

The project the credential is bound to. Read it from GET /connection.

Body

application/json
content
string
required

The document text, up to 500,000 characters.

Maximum string length: 500000
title
string
required

The item title, up to 500 characters.

Maximum string length: 500
replaceItemId
string<uuid>

An upload in this project to replace. The new text becomes its Current version.

Response

Uploaded Library item

data
object
required
meta
object
required

Sent beside data on every successful response that returns data.