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

# SetAutoApproveSpendCapAPI mirrors erdo_set_auto_approve_spend_cap: set the


> org's auto-approve spend cap in US dollars (admin only, enforced by the organization service). Send {"cap\_usd": null} to reset to the default, or 0 to have every spend action ask.




## OpenAPI

````yaml /api/openapi.json put /v1/auto-approve-spend-cap
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-26'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/auto-approve-spend-cap:
    put:
      summary: >
        SetAutoApproveSpendCapAPI mirrors erdo_set_auto_approve_spend_cap: set
        the
      description: >
        org's auto-approve spend cap in US dollars (admin only, enforced by the
        organization service). Send {"cap\_usd": null} to reset to the default,
        or 0 to have every spend action ask.
      operationId: PUT:mcp.SetAutoApproveSpendCapAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                cap_usd:
                  type: number
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  cap_usd:
                    title: >
                      CapUSD is the cap in US dollars. On a write, null resets
                      to the default.
                    type: number
                  source:
                    title: >
                      Source is "default" when the org has not set a cap, else
                      "organization".
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

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