Hanzo
OpenapiCloudflare

Write a Workers KV value from the request body

Stores one KV key on the org's OWN Cloudflare account.

PUT /v1/cloudflare/kv/namespaces/{namespace}/values/{key}

Addresshttps://api.hanzo.ai/v1/cloudflare/kv/namespaces/{namespace}/values/{key}
MethodPUT
Operationput_cloudflare_kv_namespaces_by_namespace_values_by_key
AuthAuthorization: Bearer $HANZO_API_KEY

Stores one KV key on the org's OWN Cloudflare account. The REQUEST BODY IS THE VALUE, forwarded verbatim under the caller's own Content-Type (text/plain when none is sent), so a value is never re-encoded on the way in — which is why this is not a typed op. expiration and expiration_ttl may ride the query string and are passed through to Cloudflare. Requires ORG ADMIN (403 otherwise); the same namespace and key validation as the read answers 400; 503 if the org has never connected a Cloudflare token.

Request

2 fields.

FieldInTypeRequiredDescription
namespacepathstringyes
keypathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo cloudflare kv namespaces values set <namespace> <key>

Cloudflare API · All Hanzo APIs · Interactive reference

How is this guide?

On this page