Skip to main content
PUT
Write cache entry

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

key
string
required

Cache key, 1 to 512 characters: letters, digits, underscore, colon, dot, hyphen and slash. No "." or ".." segments between slashes. Cache key, percent-encoded (/ as %2F). 1 to 512 characters.

Required string length: 1 - 512
Pattern: ^[a-zA-Z0-9_:.\-/]+$

Body

application/json
value
string
required

UTF-8 string value. Values over 1 KB are stored compressed.

ttl_seconds
integer

Seconds until the entry expires, 1 to 86400. Defaults to 300 when omitted; the previous TTL is never kept.

Required range: 1 <= x <= 86400

Response

The written entry.

A cache entry without its value.

key
string
required

Cache key.

expires_at
string<date-time> | null
required

RFC 3339 UTC time the entry expires, or null for a miss or for an entry written through the legacy no-expiry path (ttl=0).