Categories

Update existing category.

PUT
https://firefly.example.com/api/v1/categories/{id}

Update existing category.

Body

JSON array with updated category information. See the model for the exact specifications.

application/json,application/x-www-form-urlencodedCategoryUpdate
namestringrequired
Example
Lunch
notesstring | null
Example
Some example notes
colorstring | null

The color of the category in HEX format. Firefly III does not use this field, but your app might.

Example
FF0000

Parameters

X-Trace-Idstring<uuid>header

Unique identifier associated with this request.

idstringrequiredpath

The ID of the category.

Response

Updated category stored, result in response

Response fields application/vnd.api+json
dataCategoryReadrequired
Show child attributes
typestringrequired

Immutable value

Example
categories
idstringrequired
Example
2
attributesCategoryPropertiesrequired
Show child attributes
created_atstring<date-time>read only
Example
2026-10-01T00:00:00+00:00
updated_atstring<date-time>read only
Example
2026-10-01T00:00:00+00:00
namestringrequired
Example
Lunch
colorstring

The color of the category in HEX format. Firefly III does not use this field, but your app might.

Example
FF0000
last_activitystring<date-time> | null

Last activity of the category.

Example
2026-10-01T00:00:00+00:00
notesstring | null
Example
Some example notes
object_has_currency_settingboolean

This object never has its own currency setting, so this value is always false.

Example
false
primary_currency_idstringread only

The currency ID of the administration's primary currency.

Example
5
primary_currency_namestringread only

The currency name of the administration's primary currency.

Example
Euro
primary_currency_codestringread only

The currency code of the administration's primary currency.

Example
EUR
primary_currency_symbolstringread only

The currency symbol of the administration's primary currency.

Example
$
primary_currency_decimal_placesinteger<int32>read only

The currency decimal places of the administration's primary currency.

Example
2

Amount(s) spent in the currencies in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45

Amount(s) spent in the primary currency in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45

Amount(s) earned in the currencies in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45

Amount(s) earned in the primary currency in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45

Amount(s) transferred in the currencies in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45

Amount(s) transferred in primary currency in the database for this category. ONLY present when start and date are set.

Show child attributes
currency_idstring
Example
5
currency_codestring
Example
USD
currency_symbolstring
Example
$
currency_decimal_placesinteger<int32>

Number of decimals supported by the currency

Example
2
sumstring<amount>

The amount earned, spent or transferred.

Example
123.45
400Bad RequestBadRequestResponse

Bad request

Response fields application/json
messagestring
Example
Bad Request
exceptionstring
Example
BadRequestHttpException

Unauthenticated

Response fields application/json
messagestring
Example
Unauthenticated
exceptionstring
Example
AuthenticationException
404Not FoundNotFoundResponse

Page not found

Response fields application/json
messagestring
Example
Resource not found
exceptionstring
Example
NotFoundHttpException
422Unprocessable EntityValidationErrorResponse

Validation error. The body will have the exact details.

Response fields application/json
messagestring
Example
The given data was invalid.
errorsobject
Show child attributes
emailArray<string>
forceArray<string>
blockedArray<string>
fieldArray<string>
roleArray<string>
blocked_codeArray<string>
nameArray<string>
typeArray<string>
ibanArray<string>
startArray<string>
endArray<string>
dateArray<string>
500Internal Server ErrorInternalExceptionResponse

Internal exception

Response fields application/json
messagestring
Example
Internal Exception
exceptionstring
Example
InternalException

Authorization

firefly_iii_authoauth2

OAuth2 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.