curl -X PATCH "https://api.nedzo.ai/v1/knowledge/33333333-3333-4333-8333-333333333333" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "textContent": "We are open 8 to 6, Monday to Saturday." }'
Knowledge
Update knowledge
Rename a knowledge item or change its content through the Nedzo REST API. Agents that use it get the new content.
PATCH
/
knowledge
/
{id}
curl -X PATCH "https://api.nedzo.ai/v1/knowledge/33333333-3333-4333-8333-333333333333" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "textContent": "We are open 8 to 6, Monday to Saturday." }'
This endpoint is for the VIP plan only. Other plans get a
403. See Plan access.Path Parameters
string
required
The knowledge item ID.
Body Parameters
string
A new name, 1 to 255 characters.
string
website items only. A new public web page.string
text items only. New text, up to 500,000 characters.string
file items only. The fileUrl from a new upload link. Send it with fileName.string
file items only. Send it with fileUrl.Errors
| Status | When |
|---|---|
400 | No field was sent, a field does not fit the item’s type, fileUrl and fileName were not sent together, the fileUrl is not from an upload link for this workspace, no file was uploaded there yet, the new file is over 5 MB or has a different extension than fileName, or the new content can’t be used. |
402 | The account has no plan, or its subscription is not active. |
404 | The item does not exist, was deleted, or is not in your API key’s scope. |
403 | The workspace is locked. The answer has workspaceLocked: true. |
502 | We could not check the uploaded file or its size, or we could not read the new content. Nothing changed. Or the item was saved but some agents did not get the new content. The message says which. In the last case, send the same update again. |
curl -X PATCH "https://api.nedzo.ai/v1/knowledge/33333333-3333-4333-8333-333333333333" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "textContent": "We are open 8 to 6, Monday to Saturday." }'
Was this page helpful?
