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 updatename,ownerId, and the icon; changingcapitalviaPATCHadditionally requires theADMINISTRATORpermission. Acceptsmultipart/form-dataso you can upload an icon file alongside the other fields.PUT— Performs an administrative capital transaction by adding or subtracting a specificamountfrom the bank’s current capital. Requires theADMINISTRATORpermission.
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.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 return200 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
