Store a new piggy bank
Creates a new piggy bank. The data required can be submitted as a JSON body or as a list of parameters.
Body
JSON array or key=value pairs with the necessary piggy bank information. See the model for the exact specifications.
namestringrequiredNew digital cameraaccountsArray<PiggyBankAccountStore>target_amountstring<amount> | nullrequired123.45current_amountstring<amount>123.45start_datestring<date>requiredThe date you started with this piggy bank.
2026-10-01target_datestring<date> | nullThe date you intend to finish saving money.
2026-10-31orderinteger<int32>5notesstring | nullSome notesobject_group_idstring | nullThe group ID of the group this object is part of. NULL if no group.
5object_group_titlestring | nullThe name of the group. NULL if no group.
Example GroupParameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
Response
New piggy bank stored, result in response.
Bad request
Unauthenticated
Page not found
Validation error. The body will have the exact details.
Internal exception
Authorization
firefly_iii_authoauth2OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.
local_bearer_authhttp (bearer)A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.
