Skip to main content
PUT
/
fastedge
/
v1
/
kv
/
{id}
/
data
Modify data in store
curl --request PUT \
  --url https://api.gcore.com/fastedge/v1/kv/{id}/data \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "key": "<string>",
    "datatype": "kv",
    "op": "add",
    "payload": {
      "value": "<string>",
      "encoding": "plain",
      "expiry": "<string>"
    }
  }
]
'
{
  "del_count": 123,
  "revision": 123,
  "store_size": 123,
  "write_count": 123,
  "write_size": 123
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer<int64>
required

Id of the store

Query Parameters

force
boolean
default:false

Force data type change

Body

application/json

Key-value pair details

key
string
required

Key of the item

datatype
enum<string>
required

Data type of the item

Available options:
kv,
sorted_set,
bloom_filter
op
enum<string>
required

Data operation

Available options:
add,
del_key,
del_entries
payload
object

KV pair value

Response

Ok

del_count
integer
required

Number of deletes from the store

revision
integer<int64>
required

Current store revision

store_size
integer
required

Total store size in bytes

write_count
integer
required

Number of writes to the store

write_size
integer
required

Size data written to the store in bytes