PUT
/apps/annotations/{annotation_id}Update Annotation
Available for: Chatflow, Chatbot, Legacy Agent apps.
Updates an annotation's question and answer.
annotation_idstringrequired
ID of the annotation to update. Get annotation IDs from [List Annotations](/en/api-reference/annotations/list-annotations).
answerstringrequired
New answer text for the annotation.
questionstringrequired
New question text for the annotation.
200Annotation updated successfully.
answerstringoptional
Predefined answer returned when the annotation is matched.
created_atintegeroptional
Creation timestamp (Unix epoch seconds).
hit_countintegeroptional
Number of times this annotation has been matched and returned as a reply.
idstringoptional
Unique annotation identifier.
questionstringoptional
Question text that triggers this annotation.
404`not_found` : Annotation does not exist.
One documented failure
not_foundAnnotation not found
not_found
Error handling
A 404 is returned: not_found : Annotation does not exist.