> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anycrm.anyreach.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Put Event Goal

> Upsert goals for an event tag. Tag must already exist in the
org's captures (we don't enforce this — a campaign can be set up
*before* any leads land).



## OpenAPI

````yaml /openapi-generated.json put /card-events/{event_tag}/goal
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /card-events/{event_tag}/goal:
    put:
      tags:
        - AnyCard Events
      summary: Put Event Goal
      description: |-
        Upsert goals for an event tag. Tag must already exist in the
        org's captures (we don't enforce this — a campaign can be set up
        *before* any leads land).
      operationId: put_event_goal_card_events__event_tag__goal_put
      parameters:
        - name: event_tag
          in: path
          required: true
          schema:
            type: string
            title: Event Tag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardEventGoalBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Put Event Goal Card Events  Event Tag  Goal Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CardEventGoalBody:
      properties:
        target_pipeline_usd:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Target Pipeline Usd
        target_lead_count:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Target Lead Count
        target_demo_count:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Target Demo Count
        period_start:
          anyOf:
            - type: string
            - type: 'null'
          title: Period Start
        period_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Period End
        notes:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Notes
      type: object
      title: CardEventGoalBody
      description: |-
        All three targets are optional — partial goals are allowed
        (e.g. "we only have a pipeline target" or "we only set a lead
        target"). Nulls clear an existing value.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````