Feature Pack 5Feature Pack 6Feature Pack 4

Update a contact in the address book

The following example shows how to update a contact in the address book.

Request


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

{
   "firstName" : "updated FirstName",
   "lastName" : "updated LastName",
   "addressType" : "ShippingAndBilling",
   "zipCode" : "12345",
   "addressLine": [
      		"100 update st.",
      		"",
      		""
      		],
   "city" : "RTP",
   "state" : "North Carolina",
   "country" : "United States",
   "zipCode" : "12345",
   "email1" : "abc@xyz.com",
   "email2" : "user1@abc.com",
   "phone1" : "9191234567"
}

Response


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

{
	"addressId": "20906"
}