Updates the policy for Policy Browser

put

/policy/risk/v1/policies/{policygid}

Policy Browser is intended for migration customers who wishes to see the old policies created in their system. If they wish to update any attributes of those policies this API can be used.

Request

Path Parameters
Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Policy object for creating, modifying and fetching policy.
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Policy object for creating, modifying and fetching policy.
Show Source
Back to Top

Response

Supported Media Types

201 Response

Policy is updated
Body ()
Root Schema : PolicyResponse
Type: object
Show Source
Nested Schema : schema
Type: object
Policy object for creating, modifying and fetching policy.
Show Source

401 Response

Unauthorized

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

In OARM, you can update an existing policy (transitioned from OAAM). The following example shows a sample request and response. The OAAM policies can be viewed on the OAAM Policy Explorer.

cURL Command to update OAAM Policies in JSON Format

curl --location --request PUT '<PolicyUrl>/policy/risk/v1/policies/51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "OAAM Challenge Policy 1",
    "description": "Device Identification policy for mobile devices.",
    "weight": "100",
    "scoringEngine": "Maximum"
}'

Sample Response in JSON Format

{
    "status": "200",
    "message": "Policy update is successfully.",
    "policygid": "51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439",
    "policy": {
        "assuranceLevelId": "postauth",
        "name": "OAAM Challenge Policy 1",
        "description": "Device Identification policy for mobile devices.",
        "status": "ACTIVE",
        "scoringEngine": "Maximum",
        "weight": 100,
        "policygid": "51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439"
    }
}

cURL Command to update OAAM Policies in XML Format

curl --location --request PUT '<PolicyUrl>/policy/risk/v1/policies/51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--header 'Content-Type: application/json' \
--data '<?xml version="1.0" encoding="UTF-8" ?>
 <Policy>
     <name>OAAM Challenge Policy 1</name>
     <description>Device Identification policy for mobile devices.</description>
     <weight>100</weight>
     <scoringEngine>Maximum</scoringEngine>
 </Policy>
'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <PolicyResponse>
     <status>200</status>
     <message>Policy update is successfully.</message>
     <policygid>51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439</policygid>
     <policy>
         <assuranceLevelId>postauth</assuranceLevelId>
         <name>OAAM Challenge Policy 1</name>
         <description>Device Identification policy for mobile devices.</description>
         <status>ACTIVE</status>
         <scoringEngine>Maximum</scoringEngine>
         <weight>100</weight>
         <policygid>51143_424de17591ff7cb74bba3759a9fa6aaf453769e756b08693b43253d09a113439</policygid>
     </policy>
 </PolicyResponse>
Back to Top