VoidhashDocs
DevelopersHelp centerGuidesAPI reference
voidhash.comOpen Studio
Essentials
API overview
Authentication
Event capture
Push device API
Webhooks
Webhook delivery
Webhook events
Projects & keys
Projects
API keys
Audit log
Customers & access
Persons
Products
Perks
Sandbox
Paywalls
Paywalls
Paywall templates
Paywall locations
Components
Component registry
Assets
Experiments & flags
Experiments
Feature flags
Analytics & events
Analytics
Analytics alerts
Analytics annotations
Cohorts
Group types
Groups
Events
Ingest policy
VoidQL
Tracking domains
Ads
Ads
Ad accounts
Meta measurement
Payments & stores
Payment providers
Payment provider products
Purchase history imports
Payment sources
Webhooks & notifications
Webhooks
Push notifications
Push configurations
Automations
Organization & team
Organizations
Members
Invitations
Billing
Your account
Profile
Session
Notices
Connected apps
Terms of Service
Developer tools
Schema
SDK
List analytics annotations
Create an analytics annotation
Retrieve an analytics annotation
Update an analytics annotation
Delete an analytics annotation
Theme

Update an analytics annotation

Changes what an annotation says or the day it is on; its author stays who wrote it, whoever changes it.

A field left out keeps its value, and null takes away a time or a description.

Guide: Annotations

Errors

StatustypecodeWhen
403permission_denied—When a bot changes an annotation it didn't write.

It can also fail with the errors every operation shares, such as unauthenticated; see Errors.

More in Analytics annotations

  • List analytics annotations GET
  • Create an analytics annotation POST
  • Retrieve an analytics annotation GET
  • Delete an analytics annotation DELETE

Something wrong or missing on this page? Tell us by email or on Discord.

PreviousRetrieve an analytics annotationNextDelete an analytics annotation
© 2026 Voidhash s.r.o.
voidhash.comPricingTermsPrivacyDiscord

On this page

AuthorizationPath parametersRequest bodyExamplesResponse bodyErrorsMore in Analytics annotations
PATCH
/api/v1/projects/{projectId}/analytics/annotations/{annotationId}

Authorization

AuthorizationBearer <token>

A project secret key: vh_sk_... for production, vh_sk_test_... for test. Keep it on your servers.

In: header

Path parameters

projectId*string

The project's id, proj_.... A secret key works only in the project it belongs to.

annotationId*string

The annotation's id, annot_....

Request body

application/json

TypeScript definitions

Use the request body type in TypeScript.

date?|

The day it moves to, YYYY-MM-DD.

time?||

A time of day on its day, HH:MM; null for the whole day.

title?|

The new title, 1 to 120 characters.

description?||

The new description; null takes it away.

Examples

curl -X PATCH "https://api.voidhash.com/api/v1/projects/proj_tz4a98xxat96iws9zmbrgj3a/analytics/annotations/annot_m4q8x2k7c9v1w3e6r0t5y2u8" \  -H "Authorization: Bearer vh_sk_..." \  -H "Content-Type: application/json" \  -d '{    "time": "08:00"  }'
{  "id": "annot_m4q8x2k7c9v1w3e6r0t5y2u8",  "projectId": "proj_tz4a98xxat96iws9zmbrgj3a",  "date": "2026-03-20",  "time": "08:00",  "title": "Price raised to 9.99",  "description": "Monthly plan, every storefront.",  "createdBy": "user:user_k3m8q1z6v9c2x5b7n4w0e8r1",  "authorName": "Grace Hopper",  "createdAt": "2026-03-20T09:26:53.000Z",  "updatedAt": "2026-03-21T10:02:11.000Z"}
{  "error": {    "type": "invalid_request",    "code": "invalid_body",    "message": "The request body is invalid: Expected object"  }}
{  "error": {    "type": "unauthenticated",    "code": "invalid_api_key",    "message": "This secret key is not valid."  }}
{  "error": {    "type": "permission_denied",    "code": "permission_denied",    "message": "Insufficient permissions."  }}
{  "error": {    "type": "not_found",    "code": "project_not_found",    "message": "There is no project proj_tz4a98xxat96iws9zmbrgj3a, or this credential cannot use it.",    "param": "projectId"  }}
{  "error": {    "type": "internal",    "code": "internal_error",    "message": "Something went wrong on our side. Try again, and contact support with the Request-Id header if it keeps failing."  }}

Response body

application/json

application/json

application/json

application/json

application/json

application/json