Hanzo
OpenapiKv

Put sets one key to one value and returns the revision the write created.

Put sets one key to one value and returns the revision the write created.

PUT /v1/kv/{bucket}/{key}

Addresshttps://api.hanzo.ai/v1/kv/{bucket}/{key}
MethodPUT
Operationput_kv_by_bucket_by_key
AuthAuthorization: Bearer $HANZO_API_KEY

Put sets one key to one value and returns the revision the write created. Writes are versioned: each put is a new revision and the bucket retains up to its History of them per key.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
bucketpathstringyesBucket is the bucket, from the path.
keypathstringyesKey is the key, from the path.
bucketbodystringBucket is the bucket, from the path.
keybodystringKey is the key, from the path.
valuebodystringValue is the value, carried verbatim as UTF-8 text (typically JSON).

Response

StatusBodyMeaning
200kvAckok

200 body — 1 field.

FieldInTypeAlwaysDescription
revisionbodyintegerRevision is the revision the write created.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


KV API · All Hanzo APIs · Interactive reference

How is this guide?

On this page