---
title: "Upsert a Key"
method: POST
path: "/kvservice.putkey/{tableName}"
tags: ["Key-Value Store"]
---

# Upsert a Key

`POST /kvservice.putkey/{tableName}`

Inserts a new key to the table or updates the existing one.

## Request body

- object
  - `data` object
    - `keys` object
      - `sku` string
      - `customer` string
    - `payload` string

## Response `200`

OK. Returns `"data" : null` when successfully inserted/updated.

- object
  - `response` object
    - `node` string
    - `csrfToken` string
    - `data` object, nullable
    - `status` integer

---

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