Update an Item in a Shopping List
This endpoint allows you update an item in a shopping list.
Update Item
PUT
https://api.whisk.com/list/v2/{list_id}/item/{item_id}
You can use the following path parameters and a body parameter to update an item in a shopping list:
Path Parameters
list_id
string
The unique identifier of the list that contains the item to be updated.
item_id
string
The unique identifier of the item to be updated.
Headers
Authentication
string
Server Token or a User Access token containing shopping_list:write
scope to authorize the API usage. For more information, see Authentication.
Request Body
body
object
The body object contains the item's attributes that can be updated. See the Body Object Example below.
Request Body Object Example
fields
fields
The fields
object allows you to specify new values for following attributes of an item:
Attribute
Type
Description
name
string
The item's name.
brand
array
The brand name if the item is of a specific brand.
comment
boolean
Additional information attached with the item.
quantity
number
The item's volume or count.
unit
array
The measurement unit of the item's quantity.
checked
boolean
Check or uncheck the item in the list.
mask
mask
The mask
object allows you to specify the attributes that you want to update specifically. It is essential to use this object because you need to specify values for all the attributes that the fields
object contains regardless of whether you want to update all or only a few of them in each update request. Hence, the mask
object determines which attributes are to be updated exactly.
The mask
object contains the path
array that allows you to add a comma-separated list of attributes to update.
Sample Request and Response
Whisk allows you to discover and understand its API capabilities on the Swagger interface with the ability to try out the API calls directly in your browser. You can call this endpoint here.
Last updated