Skip to main content
PUT
/
store
/
{store}
/
kv
/
batch
Set multiple key-value pairs
curl --request PUT \
  --url https://platform.versori.com/api/v2/store/{store}/kv/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entries": [
    {
      "key": [
        "<string>"
      ],
      "value": "<unknown>",
      "options": {
        "expireIn": 123,
        "expireAt": "2023-11-07T05:31:56Z",
        "refreshOnAccess": true,
        "ifVersionstamp": "<string>",
        "ifNotExists": true,
        "overwrite": true,
        "metadata": {}
      }
    }
  ]
}
'
{
  "successes": [
    {
      "ok": true,
      "versionstamp": "<string>",
      "committed": true
    }
  ],
  "failures": [
    {
      "key": [
        "<string>"
      ],
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.

Path Parameters

store
string<ulid>
required

Body

application/json
entries
object[]
required

Response

200 - application/json

Batch operation results

successes
object[]
required
failures
object[]
required