Add to Shopping List REVIEW
PATCH {{baseUrl}}/experimental/shopping/v0/lists/:id
Supports adding items to a list of an authenticated user. Each of the elements in the items array is added to the specified list.
The value of the versionKey field MUST match with the one on the server to ensure the consumer is making updates to the current version of the resource. If it does not match, get an updated version of the list, confirm the changes still make sense, and use the updated versionKey value to re-submit the PATCH request.
Request Body
{"versionKey"=>"5692cc40af18", "items"=>[{"quantity"=>1, "upc"=>"8495563456235"}]}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | The content-type of the request body. In order to use this PATCH endpoint, it must be "application/merge-patch+json". | |
x-mock-response-code | number | Used to specify the type of response to receive from the mock service. Indicate the desired response code from available codes on this service: 200, 400, 404, 409. |
RESPONSES
status: OK
{"data":{"id":"eaf02512-f18b-4fd8-b31f-71607a4b6d50","versionKey":"5692cc40af18","name":"Taco Night","items":[{"quantity":1,"upc":"7495563456235"},{"quantity":1,"upc":"8495563456235"}]}}