Attach a note to a timeline event
const url = 'https://example.com/api/v1/timeline/annotations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"source":"sync","eventId":1,"body":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/timeline/annotations \ --header 'Content-Type: application/json' \ --data '{ "source": "sync", "eventId": 1, "body": "example" }'Requires an authenticated user (or AUTH-bypass). The referenced event must exist (404 otherwise, so a note is never born dangling).
Request Bodyrequired
Section titled “Request Bodyrequired”object
The event source a timeline event originates from.
Responses
Section titled “Responses”Annotation created
A user note attached to a single timeline event.
object
The event source a timeline event originates from.
Example
{ "source": "sync"}Invalid body or source
object
Error message
Stable machine-readable code present on 5xx responses; error is a fixed user-safe message, raw detail is logged server-side only
Example
{ "code": "cleanup_failed"}Authentication required
object
Error message
Stable machine-readable code present on 5xx responses; error is a fixed user-safe message, raw detail is logged server-side only
Example
{ "code": "cleanup_failed"}Referenced event not found
object
Error message
Stable machine-readable code present on 5xx responses; error is a fixed user-safe message, raw detail is logged server-side only
Example
{ "code": "cleanup_failed"}Failed to create annotation
object
Error message
Stable machine-readable code present on 5xx responses; error is a fixed user-safe message, raw detail is logged server-side only
Example
{ "code": "cleanup_failed"}