Update item with JSON

PUT {{BASE_URL}}/cache/:cacheName?key_base64={{cacheKey}}&ttl_seconds={{timeToLiveSeconds}}&token={{MOMENTO_AUTH}}

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
key_base64string
ttl_secondsstring
tokenstring

Request Body

{"message":"Hello World!"}