curl --request PATCH \
--url https://api.clemta.com/fixed-assets/{fixed_asset_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500,
"salvage_value": 150,
"business_use": 100,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
'{
"success": true,
"message": "Fixed asset updated successfully",
"data": {
"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"
}
}Update an existing fixed asset
curl --request PATCH \
--url https://api.clemta.com/fixed-assets/{fixed_asset_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Office Computer",
"placed_in_service": 1640995200,
"cost": 1500,
"salvage_value": 150,
"business_use": 100,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
'{
"success": true,
"message": "Fixed asset updated successfully",
"data": {
"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"
}
}| Parameter | Type | Description |
|---|---|---|
| X-API-KEY | string | Formation API Key (required) |
| Parameter | Type | Description |
|---|---|---|
| fixed_asset_id | string | Fixed Asset ID (required) |
{
"title": "Updated Office Computer",
"placed_in_service": 1640995200,
"cost": 1600.0,
"salvage_value": 160.0,
"business_use": 90.0,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
| 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 |
64b8f1a2e4b0c8d9f0123456{
"success": true,
"message": "Fixed asset updated successfully",
"data": {
"id": "64b8f1a2e4b0c8d9f0123456",
"title": "Updated Office Computer",
"placed_in_service": 1640995200,
"cost": 1600.0,
"salvage_value": 160.0,
"business_use": 90.0,
"fixed_asset_number": 1,
"fixed_asset_number_text": "AST-1",
"created_at": 1640995200,
"updated_at": 1640995300
}
}
| 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 |
{
"success": false,
"message": "Invalid request data",
"error": {
"code": "VALIDATION_FAILED",
"details": "Field 'title' is required"
}
}
{
"success": false,
"message": "API key is required",
"error": {
"code": "API_KEY_REQUIRED",
"details": ""
}
}
{
"success": false,
"message": "Fixed asset not found",
"error": {
"code": "FIXED_ASSET_NOT_FOUND",
"details": ""
}
}
{
"success": false,
"message": "Internal server error",
"error": {
"code": "INTERNAL_ERROR",
"details": "An unexpected error occurred."
}
}
placed_in_service timestamp should be in Unix timestamp formatbusiness_use percentage must be between 0 and 100cost and salvage_value should be positive numbersupdated_at timestamp will be automatically updated when the asset is modifiedFormation API key for authentication.
Fixed Asset ID
Title/name of the fixed asset
"Office Computer"
Timestamp when the asset was placed in service
1640995200
Original cost of the fixed asset
1500
Estimated salvage value of the asset
150
Percentage of business use (0-100)
100
Company ID
"64b8f1a2e4b0c8d9f0123456"
Fixed asset updated successfully
true
"Fixed asset updated successfully"
Show child attributes
{
"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"
}