This service is used to apply a policy on the device. This takes precedence over the policy applied using a device set configuration in EMM.
This service accepts a coma separated list of policy IDs defined in the EMM server.
https://emmserver.com/emm/iemm/services/policy
POST
This is a mandatory parameter to authenticate a user.
This is a mandatory parameter. The possible values are:
This is a optional parameter to verify whether a device is part of a device set.
This is a mandatory parameter and its comma-separated values of policy id should be applied on a device. Refer examples for more details.
This is a mandatory parameter, and allowed value is application/x-www-form-urlencoded.
This is an optional parameter. The default value is application/xml
, and the possible values are application/xml
or application/json
This is a mandatory parameter. The value is output header parameter Set-Cookie value of the previous service.
3007 = Error - Device does not belong to provided Device Set
Please refer responseCode.
A unique identifier for requested applied policy.
This is a Boolean value to check if policy is applied successfully or not. The possible values are true and false.
Set-cookie helps to maintain sessions and passed in consecutive services as a value of the input header parameter Cookie
Input:
query=applypolicy&deviceid=fbf43e35aeb2fb9eaedf0dddf26250d4&policyid=7502395757865996819,7502560957311238180
Output:
{ "description":"success", "responseCode":1000, "requestID":1041, " poicyApplied ":"true" }
Copyright © 2018 Kony, Inc. All rights reserved. |