Skip to content
Dashboard

Correct an answer

PATCH
/knowledge-bases/{id}/answers/{answerId}
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.

id
required
string
answerId
required

An answer id from the answers list

string
Media typeapplication/json
object
question
string
>= 1 characters <= 1000 characters
answer
string
>= 1 characters <= 4000 characters
Example
{
"answer": "The trial session is free. Bring sports shoes and a towel."
}

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"
}
}