c690ac22ae04
Update a capsule
Path parameters
UUID v4 string
UUID v4 string
Request body
Package this capsule as a Claude Code agent (true) or stop packaging it (false). Omit to leave unchanged. An agent's system prompt is its resolved body — its authored markdown, or its Type's output_template when it borrows one, with its field values composed in whenever the Type declares fields (those fields are prompt inputs, not dropped data); its alias is its name, and its summary is its description; encrypted capsules can't be agents.
Replace the capsule's categories. Omit to leave unchanged; send [] to clear. Slugs from the curated taxonomy; unknown slugs 400.
Opaque CEK metadata produced by the client crypto layer
Optimistic-concurrency token. ISO-8601 datetime WITH offset (Z or ±HH:MM); pass the value returned by get_capsule's updated_at field verbatim. (Tightened from legacy: bare ISO without offset is now rejected as a 422 instead of silently bypassing OCC.) If the server's stored updated_at differs, the request 409s.
Markdown body (source of truth). Omit to leave unchanged; send an empty string to clear it (the blank is honoured — the Type template is NOT re-inherited); send null to revert to borrowing the Type's output template live (un-fork), which also resets token_bindings. Maximum length is configured per-Type via content_md_max (default 20000, ceiling 90000).
Replace the capsule's structured field values. Omit to leave unchanged; send {} to clear. Validated against the Type's field_schema.
One-way: set to true to enable E2EE on this capsule. Cannot be reverted to false.
Expose this capsule on the MCP prompts surface, or remove it. Toggling does not move the capsule or change its @type/ref. Omit to leave unchanged.
UUID v4 string
For a capsule published as a skill: whether editing it auto-republishes the skill so the served content follows the edit (default true). Send false to leave the published skill stale and republish manually. No effect on capsules that aren't published skills.
Optional human-readable alias (@type/alias). Lowercase slug, max 60 chars, not purely numeric. Resolves to the same capsule as its numeric ref.
Short summary; send null to clear.
Replace the capsule's tags. Omit to leave unchanged; send [] to clear. Free-form; normalized to slugs and deduped server-side.
New capsule title
Per-token prompt bindings ({ token: { kind: 'field'|'open', required?, description? } }). Partial map, merged with the stored set. Web-editor only; the body remains the sole way to add or remove a token.
Wrapped CEK; required when enabling encryption.
Response
Successful response
UUID v4 string
UUID v4 string