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

# Update an intent audience



## OpenAPI

````yaml https://api.aws53.cloud/openapi-intent.json patch /v1/intent/audiences/{id}
openapi: 3.1.0
info:
  title: Orbit API
  version: 1.0.0
  description: >-
    Orbit Audience Intent API: topic discovery, site analysis, curated ICP
    filters, saved audiences, materialization runs, stats, and CSV export.
    Discovery endpoints are public; audience management accepts either Bearer
    JWT or X-API-Key auth.
servers:
  - url: https://api.aws53.cloud
    description: Production
security: []
tags:
  - name: Topic Discovery
    description: Browse, search, and analyze available intent topics
  - name: Site Analysis
    description: Analyze a website URL to find matching intent topics
  - name: Site Topics
    description: Recent organization site-topic analyses
  - name: Audience Builder
    description: >-
      Curated filters, preview, saved audiences, runs, stats, CSV export, and
      saved topic lists
paths:
  /v1/intent/audiences/{id}:
    patch:
      tags:
        - Audience Builder
      summary: Update an intent audience
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntentAudienceMutationRequest'
      responses:
        '200':
          description: Updated audience
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/IntentAudience'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
                required:
                  - data
                  - meta
        '400':
          description: Invalid audience config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Audience access unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Audience not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: Activation conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    IntentAudienceMutationRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 160
          example: Finance decision makers researching AI
        status:
          type: string
          enum:
            - draft
            - active
            - paused
          example: draft
        config:
          $ref: '#/components/schemas/IntentAudienceConfig'
    IntentAudience:
      type: object
      properties:
        id:
          type: string
          format: uuid
        organizationId:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - active
            - paused
        config:
          $ref: '#/components/schemas/IntentAudienceConfig'
        accessType:
          type: string
          enum:
            - paid
            - free_one_shot
        dailyRefreshEnabled:
          type: boolean
        audienceSize:
          type: integer
        createdBy:
          type:
            - string
            - 'null'
          format: uuid
        lastRefreshedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
        pausedAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - organizationId
        - name
        - status
        - config
        - accessType
        - dailyRefreshEnabled
        - audienceSize
    ApiMeta:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
        request_id:
          type: string
      required:
        - timestamp
        - request_id
    ApiErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
        - error
        - meta
    IntentAudienceConfig:
      type: object
      properties:
        topicIds:
          type: array
          items:
            type: integer
          minItems: 1
          maxItems: 250
        minScore:
          type: integer
          minimum: 0
          maximum: 99
          description: Accepted below 50, normalized/clamped to 50 by the backend.
        maxScore:
          type: integer
          minimum: 50
          maximum: 99
          default: 99
        minTopicOverlap:
          type: integer
          minimum: 1
          maximum: 250
          default: 1
        filters:
          type: object
          additionalProperties: true
        sourceUrl:
          type: string
          format: uri
      required:
        - topicIds
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details: {}
      required:
        - code
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Dashboard access token. Send as Authorization: Bearer <token>.'
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Organization API key (sk_...). Send as X-API-Key: <key>.'

````