Update a knowledge source
PATCH
/v1/knowledge/{id}
const url = 'https://api.orvoca.com/v1/knowledge/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"agent_id":"example","question":"example","answer":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.orvoca.com/v1/knowledge/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "agent_id": "example", "question": "example", "answer": "example" }'Change which agent uses it, or edit a Q&A pair. Re-indexes when needed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
agent_id
Limit to one agent; omit or null for every agent
string | null
question
string
answer
string
Example generated
{ "agent_id": "example", "question": "example", "answer": "example"}Responses
Section titled “Responses”Updated
Media typeapplication/json
object
id
required
string
type
required
string
title
required
string
answer
required
string | null
url
required
string | null
agent_id
required
Null = every agent in the workspace
string | null
status
required
string
error
required
string | null
pages_done
required
Websites: pages read so far (of at most 50)
number | null
chunk_count
required
number
size_bytes
required
number | null
refreshed_at
required
string | null
created_at
required
string
Example
{ "type": "file", "status": "processing"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}