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

# Agent Set Auto Fix Ci

> Flip the task's Auto-fix-checks toggle from chat — same shared
implementation as the UI's PATCH, so the toggle in RepoActivityStrip
reflects the change on the next task refetch.



## OpenAPI

````yaml /openapi.json post /api/agent/task/auto-fix-ci
openapi: 3.1.0
info:
  description: >-
    Public CodeCobra API. Authenticate by sending a personal API key in the
    `Authorization: Bearer <key>` header. Generate keys from Settings → API keys
    in the CodeCobra dashboard.
  title: CodeCobra Public API
  version: 1.0.0
servers: []
security: []
paths:
  /api/agent/task/auto-fix-ci:
    post:
      tags:
        - public
      summary: Agent Set Auto Fix Ci
      description: |-
        Flip the task's Auto-fix-checks toggle from chat — same shared
        implementation as the UI's PATCH, so the toggle in RepoActivityStrip
        reflects the change on the next task refetch.
      operationId: agent_set_auto_fix_ci_api_agent_task_auto_fix_ci_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentAutoFixRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    AgentAutoFixRequest:
      properties:
        enabled:
          title: Enabled
          type: boolean
      required:
        - enabled
      title: AgentAutoFixRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    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

````