Skip to content

Update an annotation

PUT
/api/v1/annotations/{annotationId}
curl --request PUT \
--url http://127.0.0.1:58259/api/v1/annotations/1 \
--header 'Content-Type: application/json' \
--data '{ "color": "example", "style": "example", "note": "example" }'

Update an existing annotation’s properties (color, style, note).

annotationId
required
integer format: int64

ID of the annotation to update

Media type application/json

Annotation update request

object
color
string
/^#[0-9A-Fa-f]{6}$/
style
string
/^(highlight|underline|strikethrough|squiggly)$/
note
string
0 <= 5000 characters
Example generated
{
"color": "example",
"style": "example",
"note": "example"
}

Annotation updated successfully

Media type */*
object
id
integer format: int64
userId
integer format: int64
bookId
integer format: int64
cfi
string
text
string
color
string
style
string
note
string
chapterTitle
string
createdAt
string format: date-time
updatedAt
string format: date-time