---
title: "Set the app's spend caps per round, generation and month"
method: PATCH
path: "/v1/apps/{id}/mining/spend-caps"
tags: ["Apps"]
---

# Set the app's spend caps per round, generation and month

`PATCH /v1/apps/{id}/mining/spend-caps`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/apps/{id}/mining/spend-caps`
- Auth: HTTP bearer

Sets the caps on the app itself; no version is published. An omitted key keeps its value and `null` returns it to the platform default. A live round is refused when its own cap would take the generation or the month past theirs. Allowed for an owner of a self-serve workspace; in other workspaces the caps are set by Talonic and the call is 403. Requires the `owner` access tier on the app.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `per_round_usd` number, nullable: Most one round may spend
  - `per_generation_usd` number, nullable: Most one exploration generation may spend
  - `per_month_usd` number, nullable: Most the app may spend in a calendar month (UTC)

## Response `200`

The effective caps and the values stored on the app.

- object
  - `caps` AppRulesEffectiveSpendCaps
    - `per_round_usd` AppRulesEffectiveCap
      - `value` number: The cap in USD.
      - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
    - `per_generation_usd` AppRulesEffectiveCap
      - `value` number: The cap in USD.
      - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
    - `per_month_usd` AppRulesEffectiveCap
      - `value` number: The cap in USD.
      - `source` 'app' | 'platform': Whether the app sets it or the platform default applies.
  - `app_caps` object, nullable: The values stored on the app; a missing or null key uses the platform default.
    - `per_round_usd` number, nullable
    - `per_generation_usd` number, nullable
    - `per_month_usd` number, nullable

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `422`: The request is well-formed but violates the declared task contract.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/apps/:id/mining/spend-caps/patch.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
