Feature Pack 5Feature Pack 6Feature Pack 4

Update a wish list

The following examples show how to update a wish list.

Request 1


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

{
	"description" : "updated description"
}

Response 1


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

{
	"uniqueID": "10004"
}

Request 2


PUT /wcs/resources/store/10101/wishlist/10006?addItem=true HTTPS/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
   "item": [
		{
			"productId" : "12426",
			"quantityRequested" : "10.0"
		}
    ]      
}


Response 2


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

{
	"item": [
		{
			"giftListItemID": "10006"
		}
	],
	"uniqueID": "10006"
}