Annotation
Partial update annotation
Update part of annotation object.
<Callout type="info"> One can be tempted by patching the status of the annotation to the `confirmed` or `exported` state. However, patching status skips key annotation metadata updates which negatively affects the Dedicated AI Engine training. Use the [confirm](/api/annotation#confirm-validation) endpoint for switching annotation to the `confirmed` or `exported` state. </Callout> <Callout type="info"> Please be aware that annotation status cannot be manually set to `purged`. Use the [purge deleted](/api/annotation#purge-deleted-annotations) endpoint. Also note, that once annotation has `purged` status, it cannot be changed anymore. </Callout>patch/api/v1/annotations/{annotationID}
Request body
Example request
{
"id": 314528,
"url": "https://example.rossum.app/api/v1/annotations/314159",
"status": "to_review",
"document": "https://example.rossum.app/api/v1/documents/456700",
"queue": "https://example.rossum.app/api/v1/queues/8198",
"schema": "https://example.rossum.app/api/v1/schemas/31336",
"relations": [],
"pages": [
"https://example.rossum.app/api/v1/pages/558598"
],
"creator": "https://example.rossum.app/api/v1/users/10775",
"created_at": "2021-04-26T10:08:03.856648Z",
"modified_by": "https://example.rossum.app/api/v1/users/10775",
"modified_at": "2021-04-26T10:08:03.856648Z",
"rir_poll_id": "54f6b9ecfa751789f71ddf12",
"content": "https://example.rossum.app/api/v1/annotations/314159",
"metadata": {
"some_key": "some_value"
},
"related_emails": [],
"email": "https://example.rossum.app/api/v1/emails/1234",
"email_thread": "https://example.rossum.app/api/v1/email_threads/456",
"has_email_thread_with_replies": true,
"organization": "https://example.rossum.app/api/v1/organizations/406",
"assignees": [
"https://example.rossum.app/api/v1/users/1",
"https://example.rossum.app/api/v1/users/2"
],
"labels": [],
"training_enabled": true
}Response
OK
Example response
{
"id": 314528,
"url": "https://example.rossum.app/api/v1/annotations/314159",
"status": "to_review",
"document": "https://example.rossum.app/api/v1/documents/456700",
"queue": "https://example.rossum.app/api/v1/queues/8198",
"schema": "https://example.rossum.app/api/v1/schemas/31336",
"relations": [],
"pages": [
"https://example.rossum.app/api/v1/pages/558598"
],
"creator": "https://example.rossum.app/api/v1/users/10775",
"created_at": "2021-04-26T10:08:03.856648Z",
"modified_by": "https://example.rossum.app/api/v1/users/10775",
"modified_at": "2021-04-26T10:08:03.856648Z",
"rir_poll_id": "54f6b9ecfa751789f71ddf12",
"content": "https://example.rossum.app/api/v1/annotations/314159",
"metadata": {
"some_key": "some_value"
},
"related_emails": [],
"email": "https://example.rossum.app/api/v1/emails/1234",
"email_thread": "https://example.rossum.app/api/v1/email_threads/456",
"has_email_thread_with_replies": true,
"organization": "https://example.rossum.app/api/v1/organizations/406",
"assignees": [
"https://example.rossum.app/api/v1/users/1",
"https://example.rossum.app/api/v1/users/2"
],
"labels": [],
"training_enabled": true
}Changes
No recorded changes to this endpoint across all 1 revision of this API.