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

# Decide an approval

> Approve or deny an approval a paused run is waiting for.



## OpenAPI

````yaml /docs/reference/openapi.json post /runs/{run_id}/approvals/{approval_id}
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /runs/{run_id}/approvals/{approval_id}:
    post:
      tags:
        - Runs
      summary: Decide an approval
      description: Approve or deny an approval a paused run is waiting for.
      operationId: decide_approval_runs__run_id__approvals__approval_id__post
      parameters:
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
        - in: path
          name: approval_id
          required: true
          schema:
            title: Approval Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalDecisionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Decide Approval Runs  Run Id  Approvals  Approval Id 
                  Post
                type: object
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ApprovalDecisionRequest:
      description: A person's decision on an approval a run is waiting for.
      properties:
        approver:
          description: Who decided
          minLength: 1
          title: Approver
          type: string
        arguments:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Approve this edited call instead of the one asked for
          title: Arguments
        decision:
          enum:
            - approve
            - deny
          title: Decision
          type: string
        note:
          anyOf:
            - type: string
            - type: 'null'
          description: Reason; a denial's note reaches the model
          title: Note
      required:
        - decision
        - approver
      title: ApprovalDecisionRequest
      type: object
    ErrorResponse:
      description: Standard error response model.
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: Additional error details
          title: Detail
        error:
          description: Error type
          title: Error
          type: string
        message:
          description: Error message
          title: Message
          type: string
      required:
        - error
        - message
      title: ErrorResponse
      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

````