> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.posthog.core.NewAnnotation

- Component: `appmixer.posthog.core.NewAnnotation`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.posthog 1.1.0](https://connectors.appmixer.com/connector/appmixer.posthog/1.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.posthog/1.1.0/component/appmixer.posthog.core.NewAnnotation>

Triggers when a new annotation is created in a PostHog project.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Project (`projectId`) | text | Pick a project, or type the numeric Project ID directly. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Annotation ID (`id`) | integer | - |
| Content (`content`) | string | - |
| Date Marker (`date_marker`) | string | - |
| Scope (`scope`) | string | - |
| Created At (`created_at`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.posthog.core.NewAnnotation",
  "description": "Triggers when a new annotation is created in a PostHog project.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "trigger": true,
  "tick": true,
  "auth": {
    "service": "appmixer:posthog"
  },
  "quota": {
    "manager": "appmixer:posthog",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "projectId": {
          "type": "string"
        }
      },
      "required": [
        "projectId"
      ]
    },
    "inspector": {
      "inputs": {
        "projectId": {
          "type": "text",
          "index": 1,
          "label": "Project",
          "tooltip": "Pick a project, or type the numeric Project ID directly.",
          "source": {
            "url": "/component/appmixer/posthog/core/ListProjects?outPort=out",
            "data": {
              "properties": {
                "isSource": true
              },
              "transform": "./ListProjects#toSelectArray"
            }
          }
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "title": "Annotation ID",
            "example": 789
          },
          "content": {
            "type": "string",
            "title": "Content",
            "example": "Released v2.3.0"
          },
          "date_marker": {
            "type": "string",
            "format": "date-time",
            "title": "Date Marker",
            "example": "2025-01-15T10:30:00Z"
          },
          "scope": {
            "type": "string",
            "title": "Scope",
            "example": "project"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At",
            "example": "2025-01-15T10:30:00Z"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
