Publish or replace the protection manifest
Accepts YAML (text/yaml, application/yaml) or JSON. Body is the full UnifiedProtectionCard; server-side composition merges it across the platform → org → team → agent cascade and writes the canonical composed card. Requires Idempotency-Key. Honors an optional If-Match for optimistic concurrency (stale → 412). Publishing mode observe, nudge or enforce requires the agent's µ billing account (the one the gateway charges) to exist and hold a positive balance, read from billing at publish time: no account → 402 billing_unconfigured, no µ → 402 balance_depleted (both with error.details.top_up_url), billing unreachable → 503 balance_unverified. Mode off is always allowed. Plans do not gate this. Body cap 128 KiB. See ADR-008 and ADR-023.
Request
- Base URL: https://api.mnemom.ai/v1
- URL: https://api.mnemom.ai/v1/protection/agent/{agent_id}
- Auth: one of:
- HTTP bearer
- API key in header X-Mnemom-Api-Key
- API key in cookie mnemom_session
Path parameters
Agent identifier (e.g. smolt-abc123)
Headers
Client-supplied idempotency token. Replays within 24 hours return the stored result. See ADR-023.
Optional optimistic-concurrency token. Pass the ETag from a recent GET ("sha256:<hex64>" shape) to make the write conditional: a stale ETag returns 412 Precondition Failed, a malformed one 400. Omit it to publish unconditionally.
Request body
Response
Composed canonical card after the write.
Changes
No recorded changes to this operation across all 1 revision of this API.