---
title: "Update provider budgets"
method: PATCH
path: "/projects/{project_id}/providers/{provider_id}/budgets"
tags: ["providers"]
---

# Update provider budgets

`PATCH /projects/{project_id}/providers/{provider_id}/budgets`

## Request

- Base URL: `https://eu.bisibility.com/api/v1`
- URL: `https://eu.bisibility.com/api/v1/projects/{project_id}/providers/{provider_id}/budgets`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `/api/auth/oauth2/authorize`, token URL `/api/auth/oauth2/token`, scopes: `api:write`)

## Path parameters

- `project_id` string, required: Public project ID; membership and token scope are enforced.

## Headers

- `Bisibility-API-Version` 'v1'
- `X-Bisibility-Source` 'sdk' | 'cli' | 'mcp'

## Request body

- ProviderBudgetsUpdate: Omitted fields keep their stored budget; null clears a budget.
  - `credits` object
    - `app` object, nullable: App and schedules. Monthly budget on credits, in cents of credits spent. Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents', required
    - `programmatic` object, nullable: API, MCP, SDK and CLI. Monthly budget on credits, in cents of credits spent. Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents', required
  - `own` object
    - `app` object, nullable: App and schedules. Monthly budget on the project's own keys, in the provider unit: cents of provider charges or native units (searches). Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents' | 'units', required
    - `programmatic` object, nullable: API, MCP, SDK and CLI. Monthly budget on the project's own keys, in the provider unit: cents of provider charges or native units (searches). Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents' | 'units', required

## Response `200`

JSON response

- ProviderBudgets: Monthly budgets of one provider connection. Own keys and credits have separate budgets and separate usage; only the source the connection runs on today is enforced.
  - `connection_id` string, required
  - `credential_source` 'own' | 'hosted', required: The source the connection runs on today: own keys or credits (hosted).
  - `credits` object, required
    - `app` object, nullable, required: App and schedules. Monthly budget on credits, in cents of credits spent. Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents', required
    - `programmatic` object, nullable, required: API, MCP, SDK and CLI. Monthly budget on credits, in cents of credits spent. Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents', required
  - `own` object, required
    - `app` object, nullable, required: App and schedules. Monthly budget on the project's own keys, in the provider unit: cents of provider charges or native units (searches). Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents' | 'units', required
    - `programmatic` object, nullable, required: API, MCP, SDK and CLI. Monthly budget on the project's own keys, in the provider unit: cents of provider charges or native units (searches). Null means no budget.
      - `amount_per_month` integer, required
      - `unit` 'cents' | 'units', required
  - `provider` string, required: Natural provider catalog ID.
  - `source` 'connection' | 'none', required: Where the own-keys budget comes from: the connection or none.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Unsupported API version
- `429`: Rate limited

## Changes

- **2026-10-19** `a6e1ec0dec82`: 1 breaking, 6 info
  - added the new path request parameter `project_id`
  - the endpoint scheme security `AppOAuth` was added to the API
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `400`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `401`
  - …3 more

[Operation history](https://skmtc.dev/bisibility/apis/bisibility-public-api/changes/projects/:project_id/providers/:provider_id/budgets/patch.md)

---

[API](https://skmtc.dev/bisibility/apis/bisibility-public-api.md) · [All operations](https://skmtc.dev/bisibility/apis/bisibility-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bisibility/apis/bisibility-public-api/revisions/a6e1ec0dec82?raw)
