Skip to main content
PATCH
Update a knowledge document

Authorizations

Authorization
string
header
required

Company API key, sent as Authorization: Bearer <key>. Create it in the dashboard (Developer > API Keys) with the permissions the integration needs.

Path Parameters

agent
string
required
id
string
required

Body

application/json

JSON, or multipart/form-data to upload a PDF

title
string

Required unless a PDF gives one

Maximum string length: 255
content
string

Markdown; required unless a PDF is sent

file
file

PDF (10 MB max): its text becomes the content when none is sent

Response

200 - application/json

Always HTTP 200: the outcome is in success and code (absolute value of the response code).

success
boolean
Example:

true

code
integer
Example:

1000

message
string
Example:

"Request success."

body
object

Endpoint payload, null when there is none

token
string | null

Present only on authentication routes

trace_id
string | null

Present only when success is false