---
title: "Close a delegated budget: its keys are revoked and unspent credits return to the parent"
method: POST
path: "/v1/me/budgets/{budget_id}/close"
tags: ["Accounts"]
---

# Close a delegated budget: its keys are revoked and unspent credits return to the parent

`POST /v1/me/budgets/{budget_id}/close`

## Request

- Base URL: `https://www.rightshold.com`
- URL: `https://www.rightshold.com/v1/me/budgets/{budget_id}/close`
- Auth: HTTP bearer

## Path parameters

- `budget_id` string, required

## Headers

- `X-Request-Id` string

## Request body

- object: No body: send {} or nothing.

## Response `200`

OK

- object: Inferred from 7 recorded responses; required fields appeared in every one; additional properties may appear.
  - `budget` object, required
    - `id` string, required
    - `label` string, required
    - `parent_id` string, nullable, required
    - `status` string, required
    - `limit` string, required
    - `spent` string, required
    - `delegated` string, required
    - `available` string, required
    - `expires_at` unknown, required
    - `created_at` string, required
    - `closed_at` string, required
    - `keys` string[], required

## Other responses

- `400`: Problem details: a stable error code, type URI, title, status and an explanation
- `401`: Problem details: a stable error code, type URI, title, status and an explanation
- `404`: Problem details: a stable error code, type URI, title, status and an explanation
- `405`: Problem details: a stable error code, type URI, title, status and an explanation
- `422`: Problem details: a stable error code, type URI, title, status and an explanation
- `429`: Request budget exhausted; retry after Retry-After seconds
- `500`: Problem details: a stable error code, type URI, title, status and an explanation
- `4XX`: {error, detail}

---

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