Publish agent alignment card
Permanently redirects (HTTP 308, RFC 7538) to /v1/alignment/agent/{agent_id}. Method and body are preserved across the redirect. Sunset: Fri, 15 Jan 2027 00:00:00 GMT — after that the legacy path returns 410 Gone. See docs.mnemom.ai/concepts/cards-as-resources for the canonical Resources × Scope × Verb URL surface (cards-as-primitive Phase 4 W1.2b).
owner/admin/member) of the org that governs the agent may publish; the org is derived server-side; non-members get 403 agent_org_forbidden. (Enforced on the canonical endpoint the redirect lands on.)
Required headers
422 Idempotency-Key conflict.
Body shapes
Content-Type | Body |
|---|---|
text/yaml | Raw YAML card document |
application/yaml | Raw YAML card document |
application/json | Raw card object, or { "card_yaml": "<yaml string>" }, or { "card_json": {...} } |
values, autonomy, and commitments blocks at minimum. See the alignment card schema for full requirements.
Side effects
- Writes a
governance_audit_logrow before responding (synchronous; failure aborts). - Emits the
alignment_card.updatedwebhook event (see Webhooks guide). - Triggers recompose of any teams the agent belongs to.
Body size limit
128 KB. Two-layer check (Content-Length, then body length).See also
- Conscience values — published separately on the same agent.
- Unified cards overview — full card surface and composition semantics.
- Card management guide — end-to-end walkthrough including CLI, dashboard, and API methods.
Path Parameters
Agent identifier (e.g. smolt-abc123)
Response
Permanent Redirect (RFC 7538). This URL is deprecated; follow Location to the canonical /v1/<resource>/<scope>/<scope_id> shape. Method and body are preserved across the redirect — modern clients re-issue the same PUT / POST / DELETE against the target unchanged.