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

# Create Whats Working Snapshot Route

> Freeze the current What's Working report into a public share link.

The report is re-generated server-side from the supplied configuration —
the client never uploads payload data.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/brand-intelligence/reports/whats-working/snapshots
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/reports/whats-working/snapshots:
    post:
      tags:
        - Brand Intelligence
        - Brand Intelligence
      summary: Create Whats Working Snapshot Route
      description: |-
        Freeze the current What's Working report into a public share link.

        The report is re-generated server-side from the supplied configuration —
        the client never uploads payload data.
      operationId: >-
        create_whats_working_snapshot_route_api_v1_brands__brand_id__brand_intelligence_reports_whats_working_snapshots_post
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportSnapshotCreateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportSnapshotSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ReportSnapshotCreateRequest:
      properties:
        date_preset:
          type: string
          title: Date Preset
          default: last_14d
        since:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Since
        until:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Until
        sort_metric:
          type: string
          title: Sort Metric
          default: spend
        card_metrics:
          items:
            type: string
          type: array
          maxItems: 8
          title: Card Metrics
        view:
          anyOf:
            - type: string
              maxLength: 40
            - type: 'null'
          title: View
      type: object
      title: ReportSnapshotCreateRequest
      description: |-
        The report configuration to freeze — the server re-generates the
        report from these params and stores the result; the client never
        supplies payload data.
    ReportSnapshotSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        token:
          type: string
          title: Token
        report_type:
          type: string
          title: Report Type
        title:
          type: string
          title: Title
        date_start:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date Start
        date_end:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date End
        date_preset:
          anyOf:
            - type: string
            - type: 'null'
          title: Date Preset
        view:
          anyOf:
            - type: string
            - type: 'null'
          title: View
        creator_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Creator Name
        created_at:
          type: string
          format: date-time
          title: Created At
        share_path:
          type: string
          title: Share Path
      type: object
      required:
        - id
        - token
        - report_type
        - title
        - created_at
        - share_path
      title: ReportSnapshotSummary
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````