Skip to main content
PUT
/
kv
/
:provider_id
/
:customer_id
/
:namespace
/
:key
Upsert an individual KV (create if not exists)
curl --request PUT \
  --url https://app.ledger.ai/api/kv/:provider_id/:customer_id/:namespace/:key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filters
string

Upsert item with the given ids: [ provider_id, customer_id, namespace, key ]

JSON PUT body:

{
"customer_id"?: integer
"customer_ids"?: integer[]
"key": string
"labels": integer[]
"locked"?: boolean
"namespace": string
"provider_id"?: integer
"template_id"?: integer
"user_id": integer
"value": string
}

Body

application/json

Request payload

The body is of type object.

Response

Successful response

The response is of type object.