Treasury object; the id is taken from the path. Setting active to 0 also clears the primary flag, and a bank account's currency_code cannot be changed once it has transactions. Requires one of the treasury-related permissions or the General Settings / Manage Journal Accounts permission. (A POST /treasuries/{id} request is accepted as an alias for this update.)Authorization: Bearer ********************curl --location --globoff --request PUT 'https://.daftra.com/api2/treasuries/12.json' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"Treasury":{"name":"Main Treasury (Renamed)","active":1,"is_primary":0,"description":"Updated"}}'{
"result": "successful",
"code": 200
}