curl --request PUT \
--url https://api.meetcampfire.com/coa/api/fixed-asset-class/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"useful_life": -1,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}'
{
"id": 123,
"asset_account_name": "<string>",
"accumulated_depreciation_account_name": "<string>",
"depreciation_expense_account_name": "<string>",
"name": "<string>",
"useful_life": -1,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}
curl --request PUT \
--url https://api.meetcampfire.com/coa/api/fixed-asset-class/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"useful_life": -1,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}'
{
"id": 123,
"asset_account_name": "<string>",
"accumulated_depreciation_account_name": "<string>",
"depreciation_expense_account_name": "<string>",
"name": "<string>",
"useful_life": -1,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"asset_account": 123,
"accumulated_depreciation_account": 123,
"depreciation_expense_account": 123
}
Token-based authentication with required prefix "Token"
The response is of type object
.