You are not logged in.
Can someone share a example on to to return id as result of Search items rest api .
http://192.168.80.231/apirest.php/search/Peripheral?
criteria[0][link]=AND&criteria[0][field]=70&criteria[0][searchtype]=contains&criteria[0][value]=abhilashs
Returns the below result
{
"totalcount": 1,
"count": 1,
"sort": 1,
"order": "ASC",
"data": [
{
"1": "00:AE:FA:3D:AD:9D",
"3": "IDC02",
"4": "Mobile",
"5": "R38GA0LN14F",
"16": "IMEI : 990007012069230\r\n",
"23": "Samsung",
"31": "Assigned",
"40": null,
"53": "USA",
"70": "abhilashs"
}
],
"content-range": "0-0/1"
}
I also need the ID of the Peripheral devices.
Offline
Hello,
You can force it direclty in the disaply of the output with forcedisplay.
Please find below an example with Python request:
return requests.get("https://" + self.ip + Session.API_VERSION_ENDPOINT + api_endpoint + "&forcedisplay[0]=2" , verify=False, headers = self._auth_header).json()
Offline