> ## 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 a budget

> Grant or refuse the budget a waiting run ran out of. A grant is a recorded exception to that one budget, with the name of whoever made it; the policy is unchanged. Resume the run afterwards.



## OpenAPI

````yaml /docs/reference/openapi.json post /runs/{run_id}/budget
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}/budget:
    post:
      tags:
        - Runs
      summary: Decide a budget
      description: >-
        Grant or refuse the budget a waiting run ran out of. A grant is a
        recorded exception to that one budget, with the name of whoever made it;
        the policy is unchanged. Resume the run afterwards.
      operationId: decide_budget_runs__run_id__budget_post
      parameters:
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BudgetDecisionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: Response Decide Budget Runs  Run Id  Budget 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:
    BudgetDecisionRequest:
      description: A person's decision on the budget a waiting run ran out of.
      properties:
        amount:
          anyOf:
            - exclusiveMinimum: 0
              type: number
            - type: 'null'
          description: How much to add; the run's shortfall when left out
          title: Amount
        approver:
          description: Who decided
          minLength: 1
          title: Approver
          type: string
        decision:
          enum:
            - grant
            - deny
          title: Decision
          type: string
        note:
          anyOf:
            - type: string
            - type: 'null'
          description: Why
          title: Note
      required:
        - decision
        - approver
      title: BudgetDecisionRequest
      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

````