Kony Management User Guide: Intelligent EMM (IEMM) > Revert Applied Policy

Revert Applied Policy

This service reverts an applied policy on a device.

URL

https://emmserver.com/emm/iemm/services/policy

Type

POST

Input

Input Parameters

deviceid

This is a mandatory parameter to authenticate a user.

query

This is a mandatory parameter. The possible values are as follows:

requestid

This is an optional parameter. With every applied policy service, it returns with one requestid. Passing that requestid in the service device returns to the state maintained before applying that policy.

By default it reverts all the policies applied through services and maintains the state as it was at the time of the enrollment.

Input Headers

Content-Type

This is a mandatory parameter and allowed value is application/x-www-form-urlencoded.

Accept

This is an optional parameter. The default value is application/xml, and the possible values are application/xml or application/json

Cookie

This is a mandatory parameter. The value is output header parameter Set-Cookie value of the previous service.

Output

Output Parameters

responseCode

description

Refer responseCode.

requestID

A unique identifier for requested applied policy.

policiesRevert

A Boolean value to check, if the policy is reverted successfully or not. The possible values are TRUE and FALSE.

Output Headers

Set-Cookie

This helps in maintaining the session and passed in consecutive services as value of input header parameter Cookie

Examples

Input:

query=revertpolicy&deviceid=fbf43e35aeb2fb9eaedf0dddf26250d4

Output:

{
   "description":"success",
   "responseCode":1000,
   "policiesRevert":true
}
Last updated on : 04 March, 2021 Copyright © 2018 Kony, Inc. All rights reserved.