v3

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

Store record (POST)

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

This endpoint is an alias for the PUT record method and behaves identically.

post/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