Is there a way to get the available Asset_States through the API?
Asset state seems to be available in the JSON get response https://api.freshservice.com/v1/#view_a_asset
Request:
curl -u API key:X -H "Content-Type: application/json" -X GET https://myarchives.freshservice.com/cmdb/items/3.json
Response:
{
"config_item": {
"id": 75000260156,
"name": "Logitech Mouse",
"description": null,
"ci_type_id": 75000210492,
"impact": 1,
"created_at": "2020-09-22T00:43:57-04:00",
"updated_at": "2022-06-21T08:04:10-04:00",
"user_id": null,
"department_id": null,
"assigned_on": null,
"agent_id": null,
"display_id": 3,
"location_id": null,
"depreciation_id": null,
"salvage": null,
"usage_type": 1,
"asset_tag": "ASSET-3",
"group_id": null,
"wf_event_id": null,
"department_name": null,
"used_by": null,
"business_impact": "Low",
"agent_name": null,
"levelfield_values": {
"product_75000210492": 75000030511,
"vendor_75000210492": 75000082136,
"state_75000210492": "In Use",
"quantity_75000210492": 50
},
"ci_type_name": "Consumable",
"product_name": "Logitech M705 Wireless Mouse",
"vendor_name": "Logitech",
"state_name": null,
"location_name": null
}
}
I’m also looking for the answer.
Reply
Sign in to the Community
Social Login
Login for Freshworks Employees Login with LinkedInEnter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.