Skip to main content
Two HTTP methods let you modify an existing bank, each suited to a different kind of change:
  • PATCH — Partially updates one or more of the bank’s fields: name, ownerId, capital, or its icon image. You only need to include the fields you want to change. The bank owner can update name, ownerId, and the icon; changing capital via PATCH additionally requires the ADMINISTRATOR permission. Accepts multipart/form-data so you can upload an icon file alongside the other fields.
  • PUT — Performs an administrative capital transaction by adding or subtracting a specific amount from the bank’s current capital. Requires the ADMINISTRATOR permission.
PATCH accepts multipart/form-data when you need to upload a new icon. Send the other fields inside a JSON-encoded data field, and attach the icon as a file field named icon. If you are not updating the icon you can send a plain application/json body instead.
Updating capital through PATCH, or using PUT at all, requires the ADMINISTRATOR permission. The bank owner can change the name and icon without that permission.

Endpoint

Path Parameters

string
required
The Snowflake ID of the bank you want to update.

Request Body — PATCH

string
The new display name for the bank. Omit to leave the name unchanged.
string
The characterId of the character to transfer bank ownership to. Omit to leave the owner unchanged.
number
The new absolute capital value for the bank. Only applied when the requesting user holds the ADMINISTRATOR permission. Omit to leave capital unchanged.
file
A PNG image file to use as the bank’s icon. Send as a multipart/form-data file field named icon. The server hashes the image and stores it — use the returned iconHash with the images endpoint to retrieve it.

Request Body — PUT

number
required
The amount to add to (or subtract from) the bank’s current capital. Use a positive value to increase capital and a negative value to decrease it.

Response

Both methods return 200 OK with the updated bank object on success:
string
The unique Snowflake ID for this bank.
string
The characterId of the character who owns the bank.
string
The display name of the bank.
string | null
The hash of the bank’s icon. Returns null if no icon has been uploaded.
number
The bank’s capital balance after the update has been applied.
string
ISO 8601 timestamp of when the bank was created.
string
ISO 8601 timestamp of when the bank was last modified (reflects this update).

Example Requests

PATCH — Rename the bank
PUT — Apply capital transaction

Example Response

Error Responses

Rate limiting applies to both PATCH and PUT. You can call either method at most 5 times per minute. Exceeding this limit returns HTTP 429.