PUT/apps/annotations/{annotation_id}

Update Annotation

Available for: Chatflow, Chatbot, Legacy Agent apps.

Updates an annotation's question and answer.

1 parameter · 2 body fields
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.

2 status codes
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_found

    Annotation not found

    not_found

Error handling

A 404 is returned: not_found : Annotation does not exist.