Update an asset
Updates asset fields such as assignee and ownership
Update asset fields (employee assignment, ownership, etc.)
Harmony access key, sent as Authorization: AccessKey <your-key>. Create keys in Settings > Access Keys. The tenant is resolved from the key.
Request for updating asset fields
Asset display name
Employee ID to assign asset to. Use 'UNASSIGN' to explicitly unassign
Asset ownership
Asset lifecycle status
Retirement sub-status (only when status=RETIRED)
Custom notes for retirement disposition (required when retirement_sub_status=OTHER)
Whether asset is for sale
User-entered physical location (e.g., 'Building A, Shelf 3'). Empty string to clear.
Pin state of the manual location. Setting a new manual location pins it by default; re-sending the stored value leaves the pin state unchanged. Pass false alongside a value to leave it unpinned, or alone to unpin the current value. Pass true to pin the asset's existing manual location.
Successful Response
Response for successful asset update
Asset updated successfullyAsset ownership enumeration.
Asset lifecycle status enumeration.
Sub-status for retired assets.
Validation Error
PATCH /asset-management/api/v1/assets/{asset_id} HTTP/1.1
Host: api.harmony.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 293
{
"name": "text",
"employee_id": "text",
"ownership": "COMPANY_OWNED",
"status": "in_stock",
"retirement_sub_status": "auto_detected",
"retirement_notes": "text",
"for_sale": true,
"location_manual": "text",
"location_pinned": true,
"custom_fields": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
}{
"message": "Asset updated successfully",
"asset_id": "text",
"name": "text",
"employee_id": "text",
"ownership": "COMPANY_OWNED",
"status": "in_stock",
"retirement_sub_status": "auto_detected",
"retirement_notes": "text",
"for_sale": true
}Last updated
Was this helpful?
