---
url: /orchestration/reference/operations/UpdateFund.md
description: 'PATCH /v2/consumer/funds/{fundId} — Sets the fund to expire `ttl` from now, so a long-running session can keep rolling it over'
---

> Documentation index: https://developer.civitai.com/llms.txt — every page on this site has a markdown version at its URL + `.md`.

# Sets the fund to expire `ttl` from now, so a long-running session can keep rolling it over

`PATCH https://orchestration.civitai.com/v2/consumer/funds/{fundId}`

Operation `UpdateFund` · Funds · Civitai Orchestration API, generated from the published OpenAPI spec ([v2-consumers.json](https://developer.civitai.com/openapi/v2-consumers.json)); the interactive HTML page is this URL without `.md`.

## Authentication

Send `Authorization: Bearer <token>` (the spec's `ApiKey` scheme); this operation documents `401 Unauthorized` for a missing or invalid token. See [Authentication](https://developer.civitai.com/orchestration/guide/authentication.md).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `fundId` | path | string (uuid) | yes |  |

## Request body

Optional. Content type: `application/json-patch+json`.

Schema `JsonPatchDocument`: array of `JsonPatchOperation` — Array of operations to perform

Schema `JsonPatchOperation` — Describes a single operation in a JSON Patch document. Includes the operation type, the target property path, and the value to be used.

| Field | Type | Required | Description |
|---|---|---|---|
| `op` | string, one of `add`, `remove`, `replace`, `move`, `copy`, `test` | yes | The operation type. Allowed values: 'add', 'remove', 'replace', 'move', 'copy', 'test'. |
| `path` | string | yes | The JSON Pointer path to the property in the target document where the operation is to be applied. |
| `from` | string | no | Should be a path, required when using move, copy |
| `value` | any, nullable | no | The value to apply for 'add', 'replace', or 'test' operations. Not required for 'remove', 'move', or 'copy'. |

## Responses

### 200 OK

Content type: `application/json`.

Schema `FundResponse`.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string (uuid) | yes |  |
| `allowMatureContent` | boolean | yes |  |
| `description` | string, nullable | no |  |
| `createdAt` | string (date-time) | yes |  |
| `expiresAt` | string (date-time) | yes |  |
| `balance` | integer (int32) | yes |  |
| `balances` | map of integer (int32) | yes | Balance per currency (`yellow`, `blue`, `green`, `fakeRed`). |

### 400 Bad Request

Content type: `application/json`.

Schema `ProblemDetails`.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string, nullable | no |  |
| `title` | string, nullable | no |  |
| `status` | integer (int32), nullable | no |  |
| `detail` | string, nullable | no |  |
| `instance` | string, nullable | no |  |

### 401 Unauthorized

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.

### 404 Not Found

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.
