Write cache entry

http
PUT /projects/{project_reference}/cache/entries/{key}

Creates or replaces one cache entry. ttl_seconds defaults to 300. Requires project.cache.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
keypathYesCache key, 1 to 512 characters: letters, digits, underscore, colon, dot, hyphen and slash. No "." or ".." segments between slashes.

Request body

FieldTypeRequiredDescription
valuestringYesUTF-8 string value. Values over 1 KB are stored compressed.
ttl_secondsintegerSeconds until the entry expires, 1 to 86400. Defaults to 300 when omitted; the previous TTL is never kept.

Responses

StatusDescription
200The written entry.
400Bad request
401Unauthorized
403Forbidden
404Not found
413Payload too large
500Server error