get_device_enrollments

Gets the device enrollments.

Path:
/lib/get_device_enrollments.js

Parameters:

NameTypeDescription
startDateIncrementIntegerThe number of days in the past after which, device enrollments are to be retrieved.
endDateIncrementIntegerThe number of days in the past before which, device enrollments are to be retrieved.

Example Request:

POST /redrock/query

{  
   "Script":"@/lib/get_device_enrollments.js",
   "Args":{  
   	  "startDateIncrement": 3,
   	  "endDateIncrement": 2,
      "PageNumber":1,
      "PageSize":10,
      "Limit":10,
      "SortBy":"",
      "direction":"False",
      "Caching":-1
   }   
}

Example Response:

"Message": "Query has failed: Query has failed: Invalid time span passed to _date.\r\nLine: 46 Char: 0\r\nNo source code available.",