Skip to main content
PUT
/
storage
/
kv
/
{bucket}
Create or update a KV bucket
curl --request PUT \
  --url https://api.quiva.ai/storage/kv/{bucket} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "max_bytes": 2,
  "max_value_size": 2,
  "indexing": {
    "mappings": [
      {
        "field": "<string>",
        "field_type": "text"
      }
    ],
    "partitions": 2,
    "replicas": 2,
    "storage_type": "file",
    "stream": "<string>"
  }
}
'
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bucket
string
required

Name of the bucket

Body

application/json
description
string

Updated description of the bucket

max_bytes
integer

Updated maximum size of the bucket in bytes

Required range: x >= 1
max_value_size
integer

Updated maximum size of individual values in bytes

Required range: x >= 1
indexing
object

Response

Bad Request

message
string
Example:

"success"