Update Fixed Asset
Fixed Assets API
Update Fixed Asset
Update an existing fixed asset
PATCH
Update Fixed Asset
Update Fixed Asset
This endpoint allows you to update an existing fixed asset.Headers
| Parameter | Type | Description |
|---|---|---|
| X-API-KEY | string | Formation API Key (required) |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| fixed_asset_id | string | Fixed Asset ID (required) |
Request Body
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Title/name of the fixed asset |
| placed_in_service | integer | Yes | Timestamp when the asset was placed in service |
| cost | number | Yes | Original cost of the fixed asset |
| salvage_value | number | Yes | Estimated salvage value of the asset |
| business_use | number | Yes | Percentage of business use (0-100) |
| company_id | string | Yes | Company ID that owns the asset |
Parameter Examples
- Fixed Asset ID:
64b8f1a2e4b0c8d9f0123456
Response
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| success | boolean | Indicates if the operation was successful |
| message | string | Additional information about the operation |
| data | object | Response data for successful requests |
| data.id | string | Unique identifier for the fixed asset |
| data.title | string | Title/name of the fixed asset |
| data.placed_in_service | integer | Timestamp when asset was placed in service |
| data.cost | number | Original cost of the fixed asset |
| data.salvage_value | number | Estimated salvage value of the asset |
| data.business_use | number | Percentage of business use (0-100) |
| data.fixed_asset_number | integer | Auto-generated fixed asset number |
| data.fixed_asset_number_text | string | Formatted fixed asset number text |
| data.created_at | integer | Creation timestamp |
| data.updated_at | integer | Last update timestamp |
Error Responses
Invalid Request Data (400)
Unauthorized (401)
Fixed Asset Not Found (404)
Internal Server Error (500)
Notes
- The
placed_in_servicetimestamp should be in Unix timestamp format - The
business_usepercentage must be between 0 and 100 - The
costandsalvage_valueshould be positive numbers - Fixed asset numbers cannot be modified and remain unchanged
- The
updated_attimestamp will be automatically updated when the asset is modified
Authorizations
Formation API key for authentication.
Path Parameters
Fixed Asset ID
Body
application/json
Title/name of the fixed asset
Example:
"Office Computer"
Timestamp when the asset was placed in service
Example:
1640995200
Original cost of the fixed asset
Example:
1500
Estimated salvage value of the asset
Example:
150
Percentage of business use (0-100)
Example:
100
Company ID
Example:
"64b8f1a2e4b0c8d9f0123456"
Response
Fixed asset updated successfully
Example:
true
Example:
"Fixed asset updated successfully"
Example:
{
"id": "64b8f1a2e4b0c8d9f0123456",
"created_at": 1640995200,
"updated_at": 1640995200,
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500,
"salvage_value": 150,
"business_use": 100,
"fixed_asset_number": 1,
"fixed_asset_number_text": "AST-1"
}