Skip to content

Update up to 500 existing annotations.

PUT/api/{version}/objects/documents/annotations/batch
NameDescription
Acceptapplication/json (default) or text/csv
Content-Typeapplication/json

Prepare a JSON-formatted list of annotation objects. Each object must contain the id__sys, document_version_id__sys, and the annotation field(s) to be updated. For more details about annotation fields, see Read Annotations by Document Version and Type.

You can only update an annotation ID (id__sys) once per request. If you provide duplicate annotation IDs, the bulk update fails any duplicate annotations.

curl -X PUT -H "Authorization: {SESSION_ID}" \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -d '[ { "id__sys": "58", "document_version_id__sys": "1_0_1", "comment__sys": "Updated comment from api" }, { "id__sys": "54", "document_version_id__sys": "1_0_1", "color__sys": "yellow_light__sys" } ]' https://myvault.veevavault.com/api/v25.1/objects/documents/annotations/batch
{ "responseStatus": "SUCCESS", "data": [ { "responseStatus": "SUCCESS", "document_version_id__sys": "1_0_1", "global_version_id__sys": "123456_1_1", "id__sys": "58" }, { "responseStatus": "SUCCESS", "document_version_id__sys": "1_0_1", "global_version_id__sys": "123456_1_1", "id__sys": "54" } ] }

On SUCCESS, the response includes the document version ID, global version ID, and ID and version of updated annotations. See Create Annotations for details. Annotations that did not update successfully are reported with an error message.