Replace capabilities settings
PUT replaces the entire capabilities block (the keyed-map of {capability_name -> CardCapability} tool grants). The current spec at the agent scope is read; the new capabilities is spliced in; the merged spec is validated; recompose is triggered. Requires Idempotency-Key and If-Match. Sync recompose — the response carries the new canonical ETag + version.
Request
- Base URL: https://api.mnemom.ai/v1
- URL: https://api.mnemom.ai/v1/alignment/agent/{agent_id}/capabilities
- 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 verbatim. See ADR-023.
Optimistic concurrency token. Pass the ETag from a recent GET ("sha256:<hex64>" shape). A stale ETag returns 412 Precondition Failed; a missing header returns 428 Precondition Required. See RFC 9110 §13.1.1.
Request body
Response
The capabilities primitive was updated at the agent scope.
Changes
No recorded changes to this operation across all 1 revision of this API.