Change an annotation's colour or note
Fields left out stay as they are; a blank note clears it. The passage cannot change: marking another
passage is a new annotation. Refused while the library is read-only over its plan's limits.
bearerAuthorizationBearer <token>A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
annotationID*stringapplication/json- body
color?AnnotationColor"yellow""yellow""green""blue""pink"note?stringlength <= 10000Changed
application/json- response
id*stringitem_id*stringtext*stringThe marked passage.
prefix*stringThe words just before the passage, to find it again; may be empty.
suffix*stringThe words just after the passage; may be empty.
offset*|Where the passage was in the item's text when it was marked.
0 <= valuecolor*AnnotationColor"yellow""yellow""green""blue""pink"note*string|nullcreated_at*stringdate-timeupdated_at*stringdate-timeitem?The item it is in. In lists across items and single reads; left out in an item's own list.
curl -X PATCH 'https://example.com/v1/annotations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "item_id": "string", "text": "string", "prefix": "string", "suffix": "string", "offset": 0, "color": "yellow", "note": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "item": { "id": "string", "kind": "string", "title": "string", "url": "string", "domain": "string" }}Get one of the caller's annotations GET
404 for someone else's annotation, or one on an item the caller can no longer read.
Delete one of the caller's annotations DELETE
Works even when the caller can no longer read the item (they left the list it was shared in), and while the library is read-only over its plan's limits.