---
title: "Write a JSON value. ?ttl_seconds= to expire; If-Match: <version> for compare-and-set"
method: PUT
path: "/api/v1/store/kv/{ns}/{key}"
tags: ["storage"]
---

# Write a JSON value. ?ttl_seconds= to expire; If-Match: <version> for compare-and-set

`PUT /api/v1/store/kv/{ns}/{key}`

## Request

- Base URL: `https://cloudforbots.com`
- URL: `https://cloudforbots.com/api/v1/store/kv/{ns}/{key}`
- Auth: HTTP bearer

## Path parameters

- `ns` string, required
- `key` string, required

## Request body

- unknown

## Response `200`

ok

---

[API](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api.md) · [All operations](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api/revisions/1afdb5648693?raw)
