---
title: "Upsert Kv"
method: POST
path: "/v1/kv"
tags: ["SDK API"]
---

# Upsert Kv

`POST /v1/kv`

Upserts a key-value pair for a user

## Request body

- BaseKV
  - `key` string, required
  - `value` string, nullable

## Response `200`

Key-value pair upserted successfully

- unknown

## Other responses

- `422` — Validation Error
- `500` — Internal server error

---

[API](https://skmtc.net/toolhouse/apis/toolhouse-api.md) · [All operations](https://skmtc.net/toolhouse/apis/toolhouse-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/toolhouse/toolhouse-api/versions/ce92a5e2d085/schema)
