PATCH
/
coa
/
api
/
fixed-asset
/
{id}
Partial Update Fixed Asset
curl --request PATCH \
  --url https://api.meetcampfire.com/coa/api/fixed-asset/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "depreciations": [
    {
      "fixed_asset": 123,
      "depreciated_until": "2023-12-25",
      "posted": true,
      "post_date": "2023-12-25",
      "amount": 0,
      "journal_entry": 123
    }
  ],
  "depreciated_until": "2023-12-25",
  "name": "<string>",
  "description": "<string>",
  "currency": "<string>",
  "initial_value": 0,
  "salvage_value": 0,
  "purchase_date": "2023-12-25",
  "depreciation_start_date": "2023-12-25",
  "status": "ACTIVE",
  "entity": 123,
  "asset_class": 123,
  "purchase_journal_entry": 123,
  "purchase_transaction": 123,
  "vendor": 123,
  "department": 123
}'
{
  "id": 123,
  "entity_name": "<string>",
  "useful_life": 123,
  "asset_class_name": "<string>",
  "asset_account": "<string>",
  "asset_account_name": "<string>",
  "depreciation_expense_account": "<string>",
  "depreciation_expense_account_name": "<string>",
  "accumulated_depreciation_account": "<string>",
  "accumulated_depreciation_account_name": "<string>",
  "purchase_journal_entry_order": "<string>",
  "purchase_transaction_id": "<string>",
  "vendor_name": "<string>",
  "department_name": "<string>",
  "tags": [
    {
      "id": 123,
      "group_name": "<string>",
      "parent_name": "<string>",
      "parent": 123,
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "group": 123
    }
  ],
  "attachments": [
    {
      "id": 123,
      "customer": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "created_by": 123,
      "created_by_name": "<string>",
      "created_by_email": "<string>",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "url": "<string>",
      "s3_content_type": "<string>",
      "s3_content_length": 1073741823,
      "s3_path": "<string>",
      "object_id": 1073741823,
      "app": "<string>",
      "model": "<string>"
    }
  ],
  "depreciations": [
    {
      "id": 123,
      "journal_entry_order": "<string>",
      "posted": true,
      "post_date": "2023-12-25",
      "amount": 0,
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "journal_entry": 123
    }
  ],
  "depreciation_end_date": "<string>",
  "disposals": [
    {
      "id": 123,
      "journal_entry_order": "<string>",
      "disposal_date": "2023-12-25",
      "disposal_percentage": 0,
      "proceeds_amount": 0,
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "fixed_asset": 123,
      "journal_entry": 123
    }
  ],
  "net_book_value": "<string>",
  "name": "<string>",
  "description": "<string>",
  "currency": "<string>",
  "initial_value": 0,
  "salvage_value": 0,
  "purchase_date": "2023-12-25",
  "depreciation_start_date": "2023-12-25",
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "status": "ACTIVE",
  "customer": 123,
  "entity": 123,
  "asset_class": 123,
  "purchase_journal_entry": 123,
  "purchase_transaction": 123,
  "vendor": 123,
  "department": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

Body

Response

200 - application/json

The response is of type object.