Update fund

Update an existing fund. This is a full update: an omitted active deactivates the fund, and the startingBalances list replaces the existing unreconciled starting balances (omitting it removes them). The linked equity account's name, number, and category are kept in sync. First retrieve the current fund from /api/funds/{id}, apply your changes, then send back the full object. While multi-org is on, a fund of an organization where you hold Accounting Settings at no campus answers 403. Moving it to another organization needs the permission at every campus of its current organization (403 otherwise) and of the new one (400 otherwise).

Required permission: Accounting Settings

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the fund

Body Params

The current version of the fund

string | null
required

The fund's name.

string | null
required

The fund's display color, as a hex value.

boolean

Whether the fund is active. New funds are always created active.

int32 | null

The account number of the fund's linked equity account. Must be unique.

category
object | null

The category of the fund's linked equity account. On writes, provide the id or code.

organization
object | null

The organization whose books this fund belongs to; required while two or more organizations exist, and absent while there is one (the fund then belongs to it). Its linked equity account always belongs to the same organization. On writes, provide the id; a fund with activity cannot move organizations, and an omitted organization on an update leaves it where it is. Naming an organization on a create needs Accounting Settings at every campus of it; a move needs it at every campus of both the current organization and the new one.

startingBalances
array of objects | null

The starting balances entered for the fund, one per asset or liability account. On writes, the list replaces the existing unreconciled starting balances; omitting it removes them. A starting balance that is closed, or dated inside a closed accounting period of the fund's organization, must be sent back with its date and amount unchanged and is then left as it is; changing or removing it, or adding one dated inside the closed period, is refused (400). An entry that also holds another fund's starting balances is never removed: only this fund's lines on it change, and a new date for it is refused (400).

startingBalances
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json