currencies
Make currency primary currency.
Make this currency the primary currency for the current financial administration. If the currency is not enabled, it will be enabled as well.
post/v1/currencies/{code}/primary
Request
- Base URLhttps://demo.firefly-iii.org/api
- URLhttps://demo.firefly-iii.org/api/v1/currencies/{code}/primary
- Auth
- OAuth 2Authorization code: https://demo.firefly-iii.org/oauth/authorizeToken URL: https://demo.firefly-iii.org/oauth/token
- or HTTP bearer
Path parameters
codestring string required
Example:USD
The currency code.
Headers
X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00
Unique identifier associated with this request.
Response
Currency has been made the primary currency.
Example response
{
"data": {
"type": "currencies",
"id": "2",
"attributes": {
"created_at": "2026-08-01T00:00:00+00:00",
"updated_at": "2026-08-01T00:00:00+00:00",
"enabled": true,
"code": "AMS",
"name": "Ankh-Morpork dollar",
"symbol": "AM$",
"decimal_places": 2
}
}
}Changes
No recorded changes to this operation across all 3 revisions of this API.