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

# Post apiv1configuratorjobs

> Create a generation job



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/v1/configurator/jobs
openapi: 3.0.0
info:
  title: QYL Observability API
  version: '2026-01-26'
servers:
  - url: https://api.staging.qyl.dev
    description: QYL Staging API
    variables: {}
  - url: https://api.qyl.dev
    description: QYL Production API
    variables: {}
security: []
tags:
  - name: Streaming
  - name: Traces
  - name: Logs
  - name: Metrics
  - name: Sessions
  - name: Errors
  - name: Deployments
  - name: Services
  - name: Health
  - name: Workspaces
  - name: Onboarding
  - name: Configurator
  - name: Issues
  - name: Workflows
  - name: Search
  - name: Alerts
paths:
  /api/v1/configurator/jobs:
    post:
      tags:
        - Configurator
      description: Create a generation job
      operationId: ConfiguratorApi_createJob
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerationJobCreateRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Qyl.Domains.Configurator.GenerationJobEntity
        '400':
          description: Bad request - validation failed (400)
          headers:
            X-Trace-Id:
              required: false
              description: Trace ID for correlation
              schema:
                type: string
            X-Request-Id:
              required: false
              description: Request ID for support
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Qyl.Common.Errors.ValidationError'
        '500':
          description: Internal server error (500)
          headers:
            X-Trace-Id:
              required: false
              description: Trace ID for correlation
              schema:
                type: string
            X-Request-Id:
              required: false
              description: Request ID for support
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Qyl.Common.Errors.InternalServerError'
components:
  schemas:
    GenerationJobCreateRequest:
      type: object
      required:
        - workspace_id
        - profile_id
        - job_type
      properties:
        workspace_id:
          type: string
          description: Workspace ID
        profile_id:
          type: string
          description: Profile ID
        job_type:
          allOf:
            - $ref: '#/components/schemas/Qyl.Domains.Configurator.GenerationJobType'
          description: Job type
      description: Generation job creation request
    Qyl.Domains.Configurator.GenerationJobEntity:
      type: object
      required:
        - id
        - workspace_id
        - profile_id
        - job_type
        - status
        - priority
        - queued_at
      properties:
        id:
          type: string
          description: Job ID
        workspace_id:
          type: string
          description: Workspace
        profile_id:
          type: string
          description: Profile
        job_type:
          allOf:
            - $ref: '#/components/schemas/Qyl.Domains.Configurator.GenerationJobType'
          description: Job type
        status:
          allOf:
            - $ref: '#/components/schemas/Qyl.Domains.Configurator.JobStatus'
          description: Job status
        priority:
          type: integer
          format: int32
          description: Priority (higher = more urgent)
        input_hash:
          type: string
          description: Hash of inputs for dedup
        output_path:
          type: string
          description: Local path where output was written
        output_hash:
          type: string
          description: Hash of generated output
        error_message:
          type: string
          description: Error message if failed
        queued_at:
          type: string
          format: date-time
          description: Queue timestamp
        started_at:
          type: string
          format: date-time
          description: Start timestamp
        completed_at:
          type: string
          format: date-time
          description: Completion timestamp
        duration_ms:
          type: integer
          format: int32
          description: Duration in milliseconds
      description: Code generation job entry
      x-csharp-type: GenerationJobEntity
      x-duckdb-table: generation_jobs
    Qyl.Common.Errors.ValidationError:
      type: object
      required:
        - title
        - errors
      properties:
        title:
          type: string
          enum:
            - Validation Failed
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Qyl.Common.Errors.ValidationErrorDetail'
          description: List of validation errors
      allOf:
        - $ref: '#/components/schemas/Qyl.Common.Errors.ProblemDetails'
      description: Bad request - validation failed (400)
    Qyl.Common.Errors.InternalServerError:
      type: object
      required:
        - title
      properties:
        title:
          type: string
          enum:
            - Internal Server Error
        error_code:
          type: string
          description: Error code for support reference
      allOf:
        - $ref: '#/components/schemas/Qyl.Common.Errors.ProblemDetails'
      description: Internal server error (500)
    Qyl.Domains.Configurator.GenerationJobType:
      type: string
      enum:
        - full
        - incremental
        - preview
      description: Generation job types
    Qyl.Domains.Configurator.JobStatus:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
        - cancelled
      description: Job lifecycle status
    Qyl.Common.Errors.ValidationErrorDetail:
      type: object
      required:
        - field
        - message
        - code
      properties:
        field:
          type: string
          description: The field/property that failed validation
        message:
          type: string
          description: The error message
        code:
          type: string
          description: The validation rule that failed
        rejected_value:
          type: string
          description: The rejected value (if safe to include)
      description: Individual validation error detail
    Qyl.Common.Errors.ProblemDetails:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
          description: A URI reference identifying the problem type
          default: about:blank
        title:
          type: string
          description: A short, human-readable summary of the problem type
        status:
          type: integer
          format: int32
          description: >-
            The HTTP status code (informational only, actual code set by
            subtype)
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence
        instance:
          type: string
          format: uri
          description: A URI reference identifying the specific occurrence
        timestamp:
          type: string
          format: date-time
          description: Timestamp of the error
      description: RFC 7807 Problem Details for HTTP APIs

````