Knowledge
Correct an answer
PATCH
/knowledge-bases/{id}/answers/{answerId}
const url = 'https://app.whatsetter.com/api/v1/knowledge-bases/example/answers/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"answer":"The trial session is free. Bring sports shoes and a towel."}'};
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://app.whatsetter.com/api/v1/knowledge-bases/example/answers/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "answer": "The trial session is free. Bring sports shoes and a towel." }'Changes the question, the answer, or both. The agents use the new
text on their next reply. Correcting an existing answer works on every
plan. Requires scope knowledge:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
answerId
required
An answer id from the answers list
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
question
string
answer
string
Example
{ "answer": "The trial session is free. Bring sports shoes and a towel."}Responses
Section titled “Responses”The corrected answer
Media typeapplication/json
object
data
object
id
string
question
string
answer
string
created_at
string | null format: date-time
updated_at
string | null format: date-time
Example
{ "data": { "id": "68e3a90f0026d1e4b7a2", "question": "How much is the trial session?", "answer": "The trial session is free. Bring sports shoes and a towel.", "created_at": "2026-10-08T14:20:05.000+00:00", "updated_at": "2026-10-08T14:31:47.000+00:00" }}Missing, unknown or revoked API key
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}The key lacks the required scope (insufficient_scope), the plan does not have this part of the API (not_in_plan), or Instagram is not enabled on the workspace (instagram_not_enabled, Instagram routes)
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Resource not found in this workspace
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Nothing to change, or an empty or too long field
Media typeapplication/json
object
error
object
code
string
message
string
Example
{ "error": { "code": "validation_error", "message": "Send \"question\", \"answer\", or both." }}The knowledge store did not accept the answer (nothing was saved)
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}