Skip to main content
POST
Write keys to a key-value storage instance

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Path Parameters

id
string
required

A storage instance id: si_ + 12 base32 characters.

Body

application/json
if_version
integer

Compare-and-set: 0 = the key must not exist; n = it must be at version n (409 KV_CONFLICT otherwise, and nothing in the call is written).

Required range: x >= 0
items
object[]
key
string

1..=512 bytes.

ttl_ms
integer

Milliseconds until the key expires; an expired key is absent everywhere.

Required range: x >= 1
value
any

Response

OK

The response is of type object.