Partial Update Fixed Asset by Id
PATCH
/api/v2/fixed_assets/5c6a005e-4032-4d27-96b9-c6ae8582be89
Use this method to update fixed asset. See our HTTP PUT documentation for complete queries method.
The following are elements for update fixed asset :
Body Request
Element | Description |
---|---|
reason | The reason why changes were made. String 170 characters . |
name | Fixed asset name String maximum 255 characters . |
is_active | Element for depreciation. |
depreciation.method | Depreciation method String maximum 255 characters . |
depreciation.useful_life_in_year | Number of years depreciation Number. |
depreciation.useful_life_in_period | Number of months depreciation Number. |
depreciation.is_after_15_start_next_month | Boolean if true depreciation will be charged the following month, if false depreciation will be charged to the active period. |
default_account | Element for default account. |
default_account.asset | Element for default account asset. |
default_account.asset.id | Account asset id String. |
default_account.asset.code | Account asset code String maximum 36 characters . |
default_account.asset.name | Account asset name String maximum 255 characters . |
default_account.accumulated_depreciation | Element for default account accumulated_depreciation. |
default_account.accumulated_depreciation.id | Account accumulated_depreciation id String. |
default_account.accumulated_depreciation.code | Account accumulated_depreciation code String maximum 36 characters . |
default_account.accumulated_depreciation.name | Account accumulated_depreciation name String maximum 255 characters . |
default_account.depreciation | Element for default account depreciation. |
default_account.depreciation.id | Account depreciation id String. |
default_account.depreciation.code | Account depreciation code String maximum 36 characters . |
default_account.depreciation.name | Account depreciation name String maximum 255 characters . |
other_fields* | Element of other fields. |
other_fields.id | other_fields id String. |
other_fields.key | other_fields key String. |
other_fields.type | other_fields data type Ex: string or integer or number |
other_fields.value | value of other_fields String. |
Body Response
Element | Description |
---|---|
id | fixed asset id. String. |
code | fixed asset code. String. |
name | fixed asset name String maximum 255 characters . |
description | fixed asset description String maximum 255 characters . |
location | fixed asset location String maximum 255 characters . |
category | Element for category. |
category.id | fixed asset name String maximum 255 characters . |
category.name | fixed asset name String maximum 255 characters . |
depreciation | Element for depreciation. |
depreciation.method | Depreciation method String maximum 255 characters . |
depreciation.useful_life_in_year | Number of years depreciation Number. |
depreciation.useful_life_in_period | Number of months depreciation Number. |
depreciation.is_after_15_start_next_month | Boolean if true depreciation will be charged the following month, if false depreciation will be charged to the active period. |
depreciation.acquired_date | Acquired date Date format YYYY-MM-DD . |
depreciation.acquired_value | Acquired value Number. |
depreciation.salvage_value | Salvage value Number. |
depreciation.last_depreciation_value | Last depreciation value Number. |
depreciation.last_accumulated_depreciation_value | Last accumulated depreciation value Number. |
depreciation.last_book_value | Last book value Number. |
default_account | Element for default account. |
default_account.asset | Element for default account asset. |
default_account.asset.id | Account asset id String. |
default_account.asset.code | Account asset code String maximum 36 characters . |
default_account.asset.name | Account asset name String maximum 255 characters . |
default_account.accumulated_depreciation | Element for default account accumulated_depreciation. |
default_account.accumulated_depreciation.id | Account accumulated_depreciation id String. |
default_account.accumulated_depreciation.code | Account accumulated_depreciation code String maximum 36 characters . |
default_account.accumulated_depreciation.name | Account accumulated_depreciation name String maximum 255 characters . |
default_account.depreciation | Element for default account depreciation. |
default_account.depreciation.id | Account depreciation id String. |
default_account.depreciation.code | Account depreciation code String maximum 36 characters . |
default_account.depreciation.name | Account depreciation name String maximum 255 characters . |
default_account.gain_on_sales | Element for default account accumulated_depreciation. |
default_account.gain_on_sales.id | Account gain_on_sales id String. |
default_account.gain_on_sales.code | Account gain_on_sales code String maximum 36 characters . |
default_account.gain_on_sales.name | Account gain_on_sales name String maximum 255 characters . |
default_account.loss_on_sales | Element for default account depreciation. |
default_account.loss_on_sales.id | Account loss_on_sales id String. |
default_account.loss_on_sales.code | Account loss_on_sales code String maximum 36 characters . |
default_account.loss_on_sales.name | Account loss_on_sales name String maximum 255 characters . |
departement* | Element for department. |
department.id | Department id. String 36 characters . |
department.code | Department code String maximum 255 characters . |
department.name | Department name String maximum 255 characters . |
transaction_in* | Element for transaction_in. |
transaction_in.id | Transaction_in id. String 36 characters . |
transaction_in.date | Transaction_in date Date format YYYY-MM-DD . |
transaction_in.number | Transaction_in number String maximum 255 characters . |
transaction_in.description | Transaction_in description String maximum 255 characters . |
transaction_out* | Element for department. |
transaction_out.id | Transaction_out id. String 36 characters . |
transaction_out.date | Transaction_out date Date format YYYY-MM-DD . |
transaction_out.number | Transaction_out number String maximum 255 characters . |
transaction_out.description | Transaction_out description String maximum 255 characters . |
other_fields* | Element of other fields. |
other_fields.id | other_fields id String. |
other_fields.key | other_fields key String. |
other_fields.type | other_fields data type Ex: string or integer or number |
other_fields.value | value of other_fields String. |
attachments* | Element of attachments. |
attachments.id | Attachments id String. |
attachments.name | Attachments name String maximum 255 characters . |
attachments.extension | Attachments extension Ex: JPG, Doc, PDF String. |
attachments.url | Attachments url String. |
created* | Created. |
created.user* | Created User. |
created.user.id | User id String Automaticaly. |
created.user.name | User name String. |
created.user.email | User email String. |
created.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |
update* | Update. |
update.user* | Update user. |
update.user.id | User id String Automaticaly. |
update.user.name | User name String. |
update.user.email | User email String. |
update.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |