Skip to main content
PUT

Overview

Replaces the agent’s expiry policy. Saving a policy doesn’t expire anything; Apply Policy does. The policy format (retention, rules, purge_expired_after) is the same as on Memanto local; see Set Policy and Memory lifecycle.

Authentication

string
required
Your Memanto Cloud API key (mk_...). See Authentication.

Path Parameters

string
required
The agent’s ID.

Body

object
How long each memory type stays active, such as "30d", "6mo", "1y" or "never". Types: fact, preference, goal, decision, artifact, learning, event, instruction, relationship, context, observation, commitment, error.
array
Checked in order; the first match wins over retention. Each has a name, a match (type, tags, provenance, source, confidence_below) and an expire_after.
string
default:"never"
Permanently delete memories expired for longer than this.