Store a new currency
Creates a new currency. 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 currency information. See the model for the exact specifications.
enabledbooleantrueDefaults to true
trueprimarybooleanMake this currency the primary currency for the current administration. You can set this value to FALSE, in which case nothing will change to the primary currency. If you set it to TRUE, the current primary currency will no longer be the primary currency.
truecodestringrequiredAMSnamestringrequiredAnkh-Morpork dollarsymbolstringrequiredAM$decimal_placesinteger<int32>Supports 0-16 decimals.
2Parameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
Response
New currency 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.
