Sessions & Agents
Memory Operations
Set Policy
Replace the agent's expiry policy (Session-based).
Saving a policy does not expire anything on its own — run the apply endpoint, or let the nightly sweep pick it up.
Requires:
- X-Session-Token: {session_token}
put/api/v2/agents/{agent_id}/policy
Path parameters
agent_idstring required
Headers
x-session-tokenstring nullable
X-Api-Keystring nullable
Cookies
memanto_session_tokenstring nullable
Request body
Response
Successful Response
{"stackTrail":"paths:/api/v2/agents/{agent_id}/policy:put:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}