Update item with JSON

PUT {{BASE_URL}}/cache/:cacheName?key={{cacheKey}}&ttl_seconds={{timeToLiveSeconds}}

Imagine we want to overwrite the existing cache item with a new data structure: JSON. We simply stringify the json and pass it into the PUT endpoint.

The value will be overwritten and our data will be stored as-is.

A successful response here will be a 204 No Content. You will not receive any indication if the operation resulted in a create or update of the cache item - only a success indicator.

Request Params

KeyDatatypeRequiredDescription
keystring
ttl_secondsstring

Request Body

{"message":"Hello World!"}