> ## 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.

# Retry Brand Intelligence Content Sources Route

> Retry current, persisted Content source failures for owned targets.

This is the explicit write twin of the side-effect-free Insights read.
Requested domains are re-checked against both the latest source evidence
and the brand's current tracked/owned URLs before exact-target jobs are
admitted.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/brand-intelligence/content-group-insights/retry-failed-sources
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/content-group-insights/retry-failed-sources:
    post:
      tags:
        - Brand Intelligence
        - Brand Intelligence
      summary: Retry Brand Intelligence Content Sources Route
      description: |-
        Retry current, persisted Content source failures for owned targets.

        This is the explicit write twin of the side-effect-free Insights read.
        Requested domains are re-checked against both the latest source evidence
        and the brand's current tracked/owned URLs before exact-target jobs are
        admitted.
      operationId: >-
        retry_brand_intelligence_content_sources_route_api_v1_brands__brand_id__brand_intelligence_content_group_insights_retry_failed_sources_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/ContentSourceRetryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentSourceRetryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContentSourceRetryRequest:
      properties:
        domains:
          items:
            type: string
          type: array
          maxItems: 60
          minItems: 1
          title: Domains
        scope_domains:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 60
            - type: 'null'
          title: Scope Domains
      type: object
      required:
        - domains
      title: ContentSourceRetryRequest
      description: >-
        Visible failure hints plus the Content cohort they came from.


        ``scope_domains=None`` preserves the exact-hint API contract for callers

        that do not know about cohorts. An explicit empty list means the active

        whole-tracked-set cohort, matching ``ContentGroupInsightsRequest``. The

        service discovers current failures inside that server-resolved scope;
        the

        client never has to reconstruct them from display lists capped at 25.
    ContentSourceRetryResponse:
      properties:
        enqueued:
          type: boolean
          title: Enqueued
          default: false
        in_progress:
          type: boolean
          title: In Progress
          default: false
        throttled:
          type: boolean
          title: Throttled
          default: false
        results:
          items:
            $ref: '#/components/schemas/ContentSourceRetryResult'
          type: array
          title: Results
      type: object
      title: ContentSourceRetryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContentSourceRetryResult:
      properties:
        domain:
          type: string
          title: Domain
        status:
          type: string
          enum:
            - queued
            - in_progress
            - deferred
            - throttled
            - not_failed
            - not_tracked
            - unavailable
          title: Status
        job_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Job Id
        retry_after_seconds:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Retry After Seconds
      type: object
      required:
        - domain
        - status
      title: ContentSourceRetryResult
      description: >-
        Admission outcome for one requested domain.


        ``queued`` is reserved for a new queue admission. ``in_progress`` means

        the request joined an existing targeted refresh, so the client never has

        to describe a deduplicated no-op as newly started work. ``deferred``
        means

        the domain is still currently failed, but this request already started
        the

        per-click maximum number of NEW exact-target jobs, so the retry belongs
        in

        a later batch. ``not_tracked`` also covers an explicit request outside
        the

        supplied retry scope, even if that domain remains tracked elsewhere in
        the

        brand, so the response does not imply authority beyond the selected
        cohort.
    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

````