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

# Update Execution Run

> Persist a host-agent outcome; owners alone approve portable training use.



## OpenAPI

````yaml /api/openapi.json patch /api/sweeps/executions/{execution_id}
openapi: 3.1.0
info:
  title: CrowdListen Agent API
  description: >-
    Configure sources, collect and retain originals, run durable analysis, and
    read or revise cited insights. Humans and agents share authorized
    entity/project records, research jobs and evidence history.
  version: 1.0.0
servers:
  - url: https://agent.crowdlisten.com
    description: Production
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/sweeps/executions/{execution_id}:
    patch:
      tags:
        - action-executions
      summary: Update Execution Run
      description: >-
        Persist a host-agent outcome; owners alone approve portable training
        use.
      operationId: update_execution_run_api_sweeps_executions__execution_id__patch
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            title: Execution Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecutionRunUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExecutionRunUpdate:
      properties:
        status:
          anyOf:
            - type: string
              enum:
                - approved
                - running
                - completed
                - failed
                - cancelled
            - type: 'null'
          title: Status
        step_results:
          anyOf:
            - items:
                $ref: '#/components/schemas/ExecutionStepResult'
              type: array
              maxItems: 20
            - type: 'null'
          title: Step Results
        outcome_summary:
          anyOf:
            - type: string
              maxLength: 8000
              minLength: 3
            - type: 'null'
          title: Outcome Summary
        metrics:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metrics
        review_status:
          anyOf:
            - type: string
              enum:
                - pending
                - approved
                - rejected
            - type: 'null'
          title: Review Status
        training_scopes:
          anyOf:
            - items:
                type: string
                enum:
                  - internal_harness
                  - external_harness
                  - fine_tuning
              type: array
              maxItems: 3
            - type: 'null'
          title: Training Scopes
      type: object
      title: ExecutionRunUpdate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecutionStepResult:
      properties:
        step:
          type: string
          maxLength: 500
          minLength: 1
          title: Step
        status:
          type: string
          enum:
            - completed
            - failed
            - skipped
          title: Status
        result:
          anyOf:
            - type: string
              maxLength: 4000
            - type: 'null'
          title: Result
      type: object
      required:
        - step
        - status
      title: ExecutionStepResult
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.