Parcha EnqueueFromCSV API

The EnqueueFromCSV API from Parcha — 2 operation(s) for enqueuefromcsv.

OpenAPI Specification

parcha-enqueuefromcsv-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Parcha Admin EnqueueFromCSV API
  version: 1.0.0
  description: API for managing Parcha jobs and checks
servers:
- url: https://api.parcha.ai/api/v1
  description: Agent Hub API server
- url: https://demo.parcha.ai/api/v1
  description: Sandbox API server
- url: https://us1.parcha.ai/api/v1
  description: Legacy API server
- url: http://{your-company-domain}.parcha.ai/api/v1
  description: Custom Enterpris server (your company's API server)
security:
- bearerAuth: []
tags:
- name: EnqueueFromCSV
paths:
  /enqueueFromCSV:
    post:
      security:
      - bearerAuth: []
      summary: Enqueue jobs from CSV
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                agent_id:
                  type: string
      responses:
        '200':
          description: CSV processed successfully
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
      tags:
      - EnqueueFromCSV
  /api/v1/enqueueFromCSV:
    post:
      summary: Enqueue From Csv
      description: Process a CSV file and enqueue jobs based on agent type.
      operationId: enqueue_from_csv_api_v1_enqueueFromCSV_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_enqueue_from_csv_api_v1_enqueueFromCSV_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - EnqueueFromCSV
components:
  schemas:
    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
    Body_enqueue_from_csv_api_v1_enqueueFromCSV_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        agent_id:
          type: string
          title: Agent Id
      type: object
      required:
      - file
      - agent_id
      title: Body_enqueue_from_csv_api_v1_enqueueFromCSV_post
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.