Skip to main content

/kv/rest/v1/lists/{key} REST Method

Updates a Key-Value Store list.

Updated on
Jun 28, 2024

/kv/rest/v1/lists/{key} REST Method

Path Parameters

key
string
REQUIRED
The unique key associated with the list

Body Parameters

addItems
array
An array of items to be added to the existing Key-Value Store list
removeItems
array
An array of items to be removed from the existing Key-Value Store list

Returns

200 OK
Indicates that the Key-Value Store list was successfully updated
Request
1
curl -X PATCH \
2
"https://api.quicknode.com/kv/rest/v1/lists/{key}" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY" \
6
-d $'{
7
"addItems": [
8
"item1",
9
"item2"
10
],
11
"removeItems": [
12
"item3",
13
"item5"
14
]
15
}'
16
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free