---
title: "Make currency primary currency."
method: POST
path: "/v1/currencies/{code}/primary"
tags: ["currencies"]
---

# Make currency primary currency.

`POST /v1/currencies/{code}/primary`

## Request

- Base URL: `https://demo.firefly-iii.org/api`
- URL: `https://demo.firefly-iii.org/api/v1/currencies/{code}/primary`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://demo.firefly-iii.org/oauth/authorize`
    - Token URL: `https://demo.firefly-iii.org/oauth/token`
  - HTTP bearer

Make this currency the primary currency for the current financial administration. If the currency is not enabled, it will be enabled as well.

## Path parameters

- `code` string, string, required

## Headers

- `X-Trace-Id` string, uuid

## Response `204`

Currency has been made the primary currency.

- CurrencySingle
  - `data` CurrencyRead, required
    - `type` string, string, required: Immutable value
    - `id` string, string, required
    - `attributes` CurrencyProperties, required
      - `created_at` string, date-time
      - `updated_at` string, date-time
      - `enabled` boolean: Defaults to true
      - `primary` boolean: Is the primary currency?
      - `code` string, string, required
      - `name` string, string, required
      - `symbol` string, string, required
      - `decimal_places` integer: Supports 0-16 decimals.

## Other responses

- `400`: Bad request
- `401`: Unauthenticated
- `404`: Page not found
- `500`: Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-5-1.md) - [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-5-1/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-5-1/revisions/d60bf328844a?raw)
