NOTE: User must be logged in as admin to access this API

URL : service-desk/api/asset-status-list

Method : GET

Query Parameters :

Parameter Type Possible Values Required/Optional Description
sort-field String name, created_at, updated_at 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 status list page
limit Integer Optional Number of records to be displayed in each page
page Integer Optional Page number

Success Response:

{
  "success": true,
  "data": {
    "current_page": 1,
    "first_page_url": "http://localhost/faveo-helpdesk-advance/public/service-desk/api/asset-status-list?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://localhost/faveo-helpdesk-advance/public/service-desk/api/asset-status-list?page=1",
    "next_page_url": null,
    "path": "http://localhost/faveo-helpdesk-advance/public/service-desk/api/asset-status-list",
    "per_page": 10,
    "prev_page_url": null,
    "to": 4,
    "total": 4,
    "asset_statuses": [
      {
        "id": 1,
        "name": "In Use",
        "description": "Assets in use",
        "created_at": "2020-07-09 02:55:10",
        "updated_at": "2020-07-09 02:55:10"
      },
      {
        "id": 2,
        "name": "Missing",
        "description": "Assets missing",
        "created_at": "2020-07-09 02:55:10",
        "updated_at": "2020-07-09 02:55:10"
      },
      {
        "id": 3,
        "name": "In Stock",
        "description": "Assets in stock",
        "created_at": "2020-07-09 02:55:10",
        "updated_at": "2020-07-09 02:55:10"
      },
      {
        "id": 5,
        "name": "Maintenance",
        "description": "Assets under maintenance",
        "created_at": "2020-07-09 02:55:10",
        "updated_at": "2020-07-09 02:55:10"
      }
    ]
  }
}