Create Annotation
create-annotationCreate a custom annotation on an AIdata property (e.g. "Removed noindex from 130 posts" on the date it happened). Annotations document site changes, campaigns, and incidents so future analytics analysis has context. Requires write permission on the property. Provide either a single date, or a start and end date for a range. Optionally sync the annotation to Google Analytics (GA4) when the property has a GA4 connection. GA4 sync uses the Google Analytics Admin API reportingDataAnnotations resource (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/properties.reportingDataAnnotations).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL or path the change relates to | |
| date | No | Date the event happened, YYYY-MM-DD (for a single-date annotation) | |
| title | Yes | Short annotation title (max 255 characters) | |
| category | No | Category name or ID. Use list-annotation-categories to see existing ones; defaults to "General" (created if needed) | |
| end_date | No | Range end, YYYY-MM-DD | |
| property | Yes | ID of the AIdata property this call targets. Call the list_properties tool to see the properties you can access. | |
| start_date | No | Range start, YYYY-MM-DD (use with end_date instead of date) | |
| visibility | No | shared = visible to the whole team (default), private = only you | |
| description | No | Longer description of what happened and the expected impact | |
| sync_to_ga4 | No | Also create the annotation in Google Analytics via the GA4 Admin API (default false) |