Publish a skill version from a document
Mints a new immutable version from a SKILL.md document and returns it, because an author who just published needs the version id to pin an agent to it. Sessions already running keep the version they froze. baseSkillVersionId must be the skill’s current latestSkillVersionId or the request is rejected with 409 revision_conflict, so the caller can re-read and retry rather than silently racing another writer. Every field is full content, there is no partial-update or omit-to-inherit semantics, so an omitted displayTitle or metadata is cleared rather than kept. Filing is not published here — a skill keeps the group it is in, and skillGroupId is rejected rather than ignored; move a skill between groups with managedAgentsUpdateSkillV2, which refiles without minting a version. 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 replay-protection key scoped to the verified tenant, principal, operation and decoded resource path. Equivalent JSON formatting and field order use the same fingerprint. Matching retries replay the original 201 result and Location; conflicting reuse returns 409 idempotency_conflict and an active request returns 409 idempotency_in_progress. Completed receipts last approximately 24 hours and pending claims may be reclaimed after approximately 1 hour. No deduplication is guaranteed after expiry.
1 - 256^[!-~]+$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
Response
Created
-9007199254740991 <= x <= 9007199254740991The files bundled with one skill version, stored as a single canonical archive and extracted into the session sandbox so the agent can read references and run scripts.