๐ŸŒ Global Mirror โ€” Visit original CN site โ†’
Skip to main content
PUT
/
store
/
items
Store or update an item.
curl --request PUT \
  --url https://api.example.com/store/items \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace": [
    "<string>"
  ],
  "key": "<string>",
  "value": {},
  "index": false,
  "ttl": null
}
'
{
  "detail": "<string>"
}

Body

application/json

Request to store or update an item.

namespace
string[]
required

A list of strings representing the namespace path.

key
string
required

The unique identifier for the item within the namespace.

value
Value ยท object
required

A dictionary containing the item's data.

index

Controls search indexing - null (use defaults), false (disable), or list of field paths to index.

Available options:
false
ttl
number | null

Optional time-to-live in minutes for the item, or null for no expiration.

Response

Success