Skip to main content
PATCH
/
v1
/
knowledge
/
{id}
Update Knowledge
curl --request PATCH \
  --url https://api.nedzo.ai/v1/knowledge/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form agent_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form 'item_name=<string>' \
  --form item_type=file \
  --form 'text_content=<string>' \
  --form 'trieve_id=<string>' \
  --form 'website_url=<string>' \
  --form file='@example-file'
{
  "status_code": 123,
  "message": "<string>",
  "data": {
    "knowledge_item": {
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "item_name": "<string>",
      "item_type": "file",
      "text_content": "<string>",
      "website_url": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "file_url": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

multipart/form-data
file
file | null
agent_id
string<uuid> | null

The unique identifier for the agent associated with this knowledge item. If not provided, the item may not be linked to a specific agent.

item_name
string | null

The name or title of the knowledge item. This should be descriptive to help identify the content.

item_type
enum<string> | null

The type of knowledge item. Helps categorize the content for better management and retrieval. Knowledge type enum

Available options:
file,
website,
text
text_content
string | null

The main text content of the knowledge item. This field holds the detailed information, description, or answer related to the item.

trieve_id
string | null

Internal reference ID associated with the knowledge item, used for integration purposes.

website_url
string | null

A URL link to the website or external source where additional information related to the knowledge item can be found.

Response

Successful Response

status_code
integer
required
message
string
required
data
object | null