Get number of approved devices and next approval time
Request
To get the number of approved devices for an account and the next available approval time, send a GET request to:
https://<host>:<port>/adm/v1/devices/canAccountApproveADevice/{accountId}
Headers
Authorization: Bearer
– bearer tokenContent-Type: application/json
Mandatory arguments
accountId
– the ID of the account (in URL)
Other arguments
None
Response
A successful request returns an HTTP 200 status.
A bad request returns an HTTP 400 status.
Example
A successful request returns a response that looks like this:
{
"currentNumberOfApprovedDevices": 2,
"numberOfDevicesApprovedInPeriod": 1,
"numberOfAllowedApprovalsInPeriod": 1,
"maximumNumberOfDevicesCanBeApproved": 5,
"numberOfDaysInApprovalPeriod": 1,
"nextDeviceCanBeApprovedOn": "2022-07-25T12:57:38.494Z",
"allowedToApprove": true
}
See also
For full details of this API, see the Account and Device Manager (ADM) API documentation.