Upsert a Key

post/kvservice.putkey/{tableName}

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

Securitybasic or X-PriceFx-jwt
Request
path Parameters
tableName
required
string

A name of the table you want to upsert the key into.

Request Body schema: application/json
object
object
sku
string
customer
string
payload
string
Responses
200

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

Response Schema: application/json
object
node
string
csrfToken
string
data
object or null
status
integer
Request samples
application/json
{
  • "data": {
    • "keys": {
      • "sku": "sku_123456",
      • "customer": "cus_123456"
      },
    • "payload": "payload"
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "string",
    • "csrfToken": "string",
    • "data": { },
    • "status": 0
    }
}