Update existing currency.
Update existing currency.
Body
JSON array with updated currency information. See the model for the exact specifications.
enabledbooleanIf the currency is enabled
trueprimarybooleantrueIf the currency must be the primary for the user. You can only submit TRUE. Submitting FALSE will not drop this currency as the primary currency, because then the system would be without one.
truecodestringThe currency code
AMSnamestringThe currency name
Ankh-Morpork dollarsymbolstringThe currency symbol
AM$decimal_placesinteger<int32>How many decimals to use when displaying this currency. Between 0 and 16.
2Parameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
codestringrequiredpathThe currency code.
Response
Updated 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.
