Update a specific user by login name

put

/PASService/rest/services/v1/users/{loginName}

Updates a single user.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

204 Response

This operation updates a single user by login name successfully.
Back to Top

Examples

This example describes how to update information for a specific user.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X PUT \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/v1/users/TestUser4" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

{
  "user": 
  {
    "loginName":"User100",
    "password": "User100",
    "userStatus": "01",
    "localeCode": "00",
    "passwordEncryption": "SHA-512",
    "client": 
        {
        "primaryCompany": "Prototype",
        "firstName": "User100",
        "lastName": "User100",
        "sex": "01",
        "email": "test@testmail.com"
      }
    ,
      "securityGroup": [
      {
        "securityGroupName": "Prototype Super",
         "roleEffectiveFrom": "2002-01-01T00:00:00Z"
     
      },
      {
        "securityGroupName": "International Super",
         "roleEffectiveFrom": "2001-01-01T00:00:00Z"
      }
    ]
    }
}
Back to Top