PUT Update Password Policy

Changes a Password Policy object on the server.

With the updatePasswordPolicy/{Password Policy Name} method, you can update the existing Password Policy defined on the Secure Proxy Configuration Manager.

This API method requires authentication, and therefore the authentication token that is generated at login must be passed in through the "X-Authentication" header.

Table 1. Update Password Policy request details

Update Password Policy request details.

Method Resource URI Description

PUT

Password Policy

/sspcmrest/sspcm/rest/passwordPolicy/updatePasswordPolicy/{Password Policy Name}

Updates the existing Password Policy with the XML provided

.
Table 2. Update Password Policy URI input parameters

Update Password Policy URI input parameters

Parameter Required or Optional Description Validation Valid values

Password Policy Name

Required

Updates the existing Password Policy with the new XML

Must be a non-empty string

A-Z a-z 0-9 ._-

HTTP Password Policy request

The following example shows the HTTP request:

PUT https://localhost:8443/sspcmrest/sspcm/rest/
passwordPolicy/updatePasswordPolicy/PasswordPolicy2
“X-Authentication”: “61504f4a524b48532b776a3467643733374b526368513d3d”
“Content-Type”: “application/xml”
XML corresponding to defining a Password Policy

XML Password Policy response

The following example shows the XML response.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <XmlResponse>
    <httpCode>200</httpCode>
    <httpStatus>OK</httpStatus>
    <action>None</action>
    <message>passwordPolicyDef MyPasswordPolicy updated.</message>
    <messageLevel>INFO</messageLevel>
    <results/>
    </XmlResponse>