Skip to main content

/kv/rest/v1/sets REST Method

Creates a new key value set.

Updated on
Jun 28, 2024

/kv/rest/v1/sets REST Method

Body Parameters

key
string
REQUIRED
A unique identifier for the key-value set
value
string
REQUIRED
The value associated with the specified key

Returns

200 OK
Indicates that the key-value set was successfully created
Request
1
curl -X POST \
2
"https://api.quicknode.com/kv/rest/v1/sets" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY" \
6
-d $'{
7
"key": "key_1",
8
"value": "value_1"
9
}'
10
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free