Feature Pack 5Feature Pack 6Feature Pack 4

Create a wish list with or without items

The following examples show how to create a wish list with or without items.

Request 1


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

{
    "description" : "test wishlist with one item",
    "item": [
		{
			"productId" : "11858",
			"quantityRequested" : "1.0",
			"quantityBought" : "0.0",
		}
    ],
	"registry" : "false"    
}

Response 1


HTTPS/1.1 201 Created
Content-Type: application/json

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

Request 2


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

{
     "description" : "test wishlist",
     "registry" : "false"
}

Response 2


HTTPS/1.1 201 Created
Content-Type: application/json

{
	"storeId": "10101",
	"uniqueID": "10004"
}