---
title: "Change an app's daily cap, in credits."
method: PATCH
path: "/v1/apps/{appId}"
tags: ["apps"]
---

# Change an app's daily cap, in credits.

`PATCH /v1/apps/{appId}`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/apps/{appId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `apps:write`)

In a team, the owner or an admin. Asks over the cap are refused with `spend_cap_reached`.

## Path parameters

- `appId` string, required

## Request body

- AppsUpdateRequest
  - `capDailyPence` integer

## Response `200`

OK

- AppsUpdateResponse
  - `app` object, required
    - `id` string, required
    - `provider` 'slack' | 'teams' | 'jira' | 'linear', required
    - `workspaceId` string, required
    - `workspaceName` string, required
    - `defaultChannelName` string, nullable, required
    - `capDailyPence` integer, required
    - `spentTodayPence` integer, required
    - `installedAt` string, required
    - `installedBy` object, required
      - `name` string, nullable, required
      - `email` string, nullable, required
    - `status` 'active' | 'revoked', required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `404`: No such question, endpoint or delivery on this account.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
