v3

OpenAPI 3.1.2Apache 2.02026-07-31231237972.0 KB
Storage/Key-value stores

Store record

Stores a value under a specific key to the key-value store.

The value is passed as the PUT payload and it is stored with a MIME content type defined by the Content-Type header and with encoding defined by the Content-Encoding header.

To save bandwidth, storage, and speed up your upload, send the request payload compressed with Gzip compression and add the Content-Encoding: gzip header. It is possible to set up another compression type with Content-Encoding request header.

Below is a list of supported Content-Encoding types.

  • Brotli compression: Content-Encoding: br
  • Gzip compression: Content-Encoding: gzip
  • Deflate compression: Content-Encoding: deflate
put/v2/key-value-stores/{storeId}/records/{recordKey}

Path parameters

storeIdstring required
Example:WkzbQMuFYuamGv3YF

Key-value store ID or username~store-name.

recordKeystring required
Example:someKey

Key of the record.

Headers

Content-Encoding'br' | 'gzip' | 'deflate' | 'identity'

Compression encoding of the request body.

Request body

PutRecordRequest required

The request body contains the value to store in the record. The content type should be specified in the Content-Type header.

Example request

{
  "message": "Hello, world!",
  "count": 42
}

Response

object required