NOTE: User must be logged in as agent or admin to access this API
URL : service-desk/api/asset-list
Method : GET
Query Parameters :
Parameter | Type | Possible Values | Required/Optional | Description |
sort-field | String | name | Optional | Field name to sort |
sort-order | String | asc, desc | Optional | Sorting order either ascending or descending |
search-query | String | Optional | Keyword to be searched in asset list page | |
limit | Integer | Optional | Number of records to be displayed in each page | |
page | Integer | Optional | Page number | |
asset_ids | Array | Optional | Array of asset ids | |
asset_type_ids | Array | Optional | Array of asset type ids | |
used_by_ids | Array | Optional | Array of user ids | |
managed_by_ids | Array | Optional | Array of user ids | |
location_ids | Array | Optional | Array of location ids | |
dept_ids | Array | Optional | Array of department ids | |
org_ids | Array | Optional | Array of organization ids | |
product_ids | Array | Optional | Array of product ids | |
impact_type_ids | Array | Optional | Array of impact type ids | |
ticket_ids | Array | Optional | Array of ticket ids | |
assigned_on | Array | Optional | Array of asset assigned on dates |
Success Response:
{ "success":true, "data":{ "current_page":1, "first_page_url":"https:\/\/www.stableservicedesk.faveodemo.com\/service-desk\/api\/asset-list?page=1", "from":1, "last_page":1, "last_page_url":"https:\/\/www.stableservicedesk.faveodemo.com\/service-desk\/api\/asset-list?page=1", "next_page_url":null, "path":"https:\/\/www.stableservicedesk.faveodemo.com\/service-desk\/api\/asset-list", "per_page":10, "prev_page_url":null, "to":2, "total":2, "assets":[ { "id":18, "name":"Teju's Samsung Tab", "managed_by":{ "id":1, "full_name":"Demo Admin", "meta_name":"Demo Admin", "name":"Demo Admin" }, "used_by":{ "id":21, "full_name":"Teju Varma", "meta_name":"Teju Varma", "name":"Teju Varma" }, "created_at":"2018-09-06 13:18:42", "updated_at":"2018-09-06 13:18:42" }, { "id":17, "name":"Manish's Logitech Mouse", "managed_by":{ "id":1, "full_name":"Demo Admin", "meta_name":"Demo Admin", "name":"Demo Admin" }, "used_by":{ "id":18, "full_name":"Manish K", "meta_name":"Manish K", "name":"Manish K" }, "created_at":"2018-09-06 13:16:39", "updated_at":"2018-09-06 13:16:39" }] } }