Feature Pack 4Feature Pack 5Feature Pack 6

Update a user account

The following example shows how to update a user account.

Request


PUT /wcs/resources/store/10101/person/@self HTTPS/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
	"addressLine": [
      		"111 main st.",
      		"Suite 111",
      		""
      		],
	"city" : "RTP",
	"state" : "North Carolina",
	"country" : "United States",
	"zipCode" : "27560",
	"gender" : "Male",
    "preferredLanguage" : "en_US",
    "bestCallingTime" : "Evening",
    "businessTitle" : "Br.",
    "organizationUnitName" : "orgUnitName1",
    "organizationName" : "orgName1",
    "personTitle" : "Miss",
	"phone1" : "919-111-1111",
	"phone2" : "919-222-2222",
	"email1" : "u1@m.com",
    "email2" : "abc@123.com",
	"mobilePhone1" : "919-111-1111",
	"mobilePhone1Country" : "United States",
     "contextAttribute": [
		{
			"attributeValue": [
				{
					"value": [
						"pcd3",
						"pcd4"
					],
					"storeId": "10101"
				}
			],
			"attributeName": "JobFunction"
		}
	]

}

Response


HTTPS/1.1 200 OK
Content-Type: application/json

{
	"userId": "9004"
}