Publish a skill version from a bundle upload
Mints a new immutable version from a zipped skill directory and returns it. Send the archive as the bundle part of a multipart/form-data body. Sessions already running keep the version they froze. base_skill_version_id must be the skill’s current latest_skill_version_id or the request is rejected with 409 revision_conflict. Every field is full content, so omitted display_title or metadata is cleared rather than kept. Filing is not published here: skill_group_id is rejected rather than ignored. Do not automatically retry an ambiguous transport failure: re-read the skill’s latest version first, because this operation does not replay a prior response.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Path Parameters
Skill id (UUID) as returned by managedAgentsCreateSkill or managedAgentsListSkills.
Body
Request body for publishing a skill version by uploading a zipped skill directory in the bundle part, plus the base version it advances from. Replaces every file in the skill: parts left out are cleared, not inherited from the current version.
Required. The skill's current latest_skill_version_id, as returned by managedAgentsGetSkill. Rejected with 409 revision_conflict if the skill has moved past this version.
A zipped Agent Skills directory containing a root SKILL.md and optional executable helpers, references, and assets.
Human-readable title for listings. Defaults to the frontmatter name.
Caller-owned key/value data as a JSON object, since a form part cannot carry structure. Rejected rather than dropped when it does not parse.
Response
An immutable snapshot of a skill's document and metadata, minted on every update. An agent may pin one, so that what a session runs cannot change under it.
An immutable snapshot of a skill's document and metadata, minted on every update. An agent may pin one, so that what a session runs cannot change under it.
Server-assigned RFC 3339 timestamp of when this version was minted.
The skill's routing description as it stood at this version.
The skill's addressable name as it stood at this version.
Organization that owns this record. Resolved from the API key; never accepted from the caller.
Skill this version belongs to.
Identifier for this skill version. Server-assigned. Pass it when attaching a skill that must stay pinned to a specific revision.
Monotonically increasing version counter within the skill, starting at 1. Server-assigned.
-9007199254740991 <= x <= 9007199254740991SHA-256 checksum of the stored document.
The files bundled with this version, and the archive they are mounted from. Absent for a version that carries only a document.
Identifier of the caller that minted this version.
Path of the document within the bundle. SKILL.md unless the author moved it.
Relative paths of files bundled with the skill. Listed to the model at activation; read only if it uses them.
The parsed SKILL.md frontmatter as authored, including fields this platform does not interpret.
The skill's full Markdown instructions. Returned only when reading a single version, since a listing has no use for it.
Caller-owned key/value data stored with this version and returned unchanged.