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) |
| Content-Type | string | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| fixed_asset_id | string | Yes | Unique ID of the fixed asset |
{
"title": "Updated Office Computer",
"placed_in_service": 1640995200,
"cost": 1800.00,
"salvage_value": 200.00,
"business_use": 100.0,
"company_id": "64b8f1a2e4b0c8d9f0123456"
}
| Field | Type | Description |
|---|---|---|
| title | string | Title/name of the fixed asset |
| placed_in_service | integer | Timestamp when the asset was placed in service |
| cost | number | Original cost of the fixed asset |
| salvage_value | number | Estimated salvage value of the asset |
| business_use | number | Percentage of business use (0-100) |
| company_id | string | ID of the company this fixed asset belongs to |
{
"success": true,
"message": "Fixed asset updated successfully",
"data": {
"id": "64b8f1a2e4b0c8d9f0123456",
"created_at": 1686787200,
"updated_at": 1686787500,
"title": "Updated Office Computer",
"placed_in_service": 1640995200,
"cost": 1800.00,
"salvage_value": 200.00,
"business_use": 100.0,
"fixed_asset_number": 1,
"fixed_asset_number_text": "AST-1"
}
}
| 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.created_at | integer | Creation timestamp |
| data.updated_at | integer | Last update timestamp |
| data.title | string | Title/name of the fixed asset |
| data.placed_in_service | integer | Timestamp when placed in service |
| data.cost | number | Original cost of the asset |
| data.salvage_value | number | Estimated salvage value |
| data.business_use | number | Percentage of business use |
| data.fixed_asset_number | integer | Auto-generated asset number |
| data.fixed_asset_number_text | string | Formatted asset number (e.g., “AST-1”) |
{
"success": false,
"message": "Invalid request data",
"error": {
"code": "VALIDATION_FAILED",
"details": "Field 'cost' must be a positive number"
}
}
{
"success": false,
"message": "API key is required",
"error": {
"code": "API_KEY_REQUIRED"
}
}
{
"success": false,
"message": "Fixed asset not found",
"error": {
"code": "NOT_FOUND"
}
}
{
"success": false,
"message": "Internal server error",
"error": {
"code": "INTERNAL_ERROR"
}
}
Formation 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"
}