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

# Ingest Source Issues

> Source-specific issue ingest.

Validates that the source is known, forces the record's source to match
the path segment, then delegates to the shared _ingest_one contract.



## OpenAPI

````yaml /openapi.json post /v1/ingest/{source}/issues
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/ingest/{source}/issues:
    post:
      tags:
        - ingest
      summary: Ingest Source Issues
      description: |-
        Source-specific issue ingest.

        Validates that the source is known, forces the record's source to match
        the path segment, then delegates to the shared _ingest_one contract.
      operationId: ingest_source_issues_v1_ingest__source__issues_post
      parameters:
        - in: path
          name: source
          required: true
          schema:
            title: Source
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestEventBody'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: Response Ingest Source Issues V1 Ingest  Source  Issues Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    IngestEventBody:
      description: |-
        Replaced v2 ingest contract (spec §3): occurred_at required, narrative
        renames body. One shape — used verbatim for single-event ingest, batch
        records, and source-specific issue ingest.
      properties:
        asset_refs:
          items:
            type: string
          title: Asset Refs
          type: array
        connector_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connector Id
        engine_eligible:
          default: true
          title: Engine Eligible
          type: boolean
        external_id:
          minLength: 1
          title: External Id
          type: string
        external_url:
          anyOf:
            - type: string
            - type: 'null'
          title: External Url
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        narrative:
          default: ''
          title: Narrative
          type: string
        occurred_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Occurred At
        occurred_at_source:
          default: occurred
          enum:
            - occurred
            - logged_at
          title: Occurred At Source
          type: string
        remediation_history:
          anyOf:
            - $ref: '#/components/schemas/RemediationHistory'
            - type: 'null'
        severity:
          $ref: '#/components/schemas/IssueSeverity'
          default: p3
        source:
          default: custom_api
          title: Source
          type: string
        structured_attrs:
          additionalProperties: true
          title: Structured Attrs
          type: object
        team:
          anyOf:
            - type: string
            - type: 'null'
          title: Team
        title:
          maxLength: 300
          minLength: 1
          title: Title
          type: string
      required:
        - external_id
        - title
      title: IngestEventBody
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    RemediationHistory:
      properties:
        interim_patch:
          default: false
          title: Interim Patch
          type: boolean
        prior_fix_refs:
          items:
            type: string
          title: Prior Fix Refs
          type: array
        prior_flag:
          default: false
          title: Prior Flag
          type: boolean
      title: RemediationHistory
      type: object
    IssueSeverity:
      enum:
        - p1
        - p2
        - p3
        - p4
      title: IssueSeverity
      type: string
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````