Update a currency
Admin only. Patches the name, symbol, exponent, or active flag. Deactivation is refused for the base currency and for one an active branch still trades in.
PATCH
/api/v1/currency/{code}Authorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
codestringrequiredThree letter code, matched case insensitively.
Request body
requiredapplication/jsonnamestringmin length 1 · max length 80
symbolstringmax length 8
exponentintegermin 0 · max 4
is_activebooleanResponses
200
Currency updated
codestringrequirednamestringrequiredsymbolstringrequiredexponentintegerrequiredmin -9007199254740991 · max 9007199254740991
is_activebooleanrequired400
No field to update, or the deactivation is refused because the currency is the base currency or still in use by an active branch
detailstringrequired403
Caller is not an admin
detailstringrequired404
No currency with that code
detailstringrequired