Publish a skill or collab agent
Publish a skill or collab agent so it is live for everyone who uses it. Omit version_id to snapshot and publish the current draft, or pass an existing version to promote it. For a collab agent, pass expected_version_id, the version you saw published, to publish only over it: if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Requires edit access to the asset.
Authentication
X-API-KEYstring
API Key authentication via header
Path parameters
asset_id
ID of the skill or collab agent to publish
Headers
X-Athena-Session-Credential
Request
This endpoint expects an object.
expected_version_id
Collab agents only: the version you saw published. The publish goes ahead only while the agent still serves it; if another publish landed since, the request is refused with 409 PUBLICATION_MOVED and nothing is published. Omit it to publish over whatever is published. A skill refuses it with 400.
note
Optional release note shown in the publish history
version_id
Existing version to promote to published. Omit to snapshot and publish the current draft.
Response
Successful Response
asset_id
ID of the published asset
asset_type
Type of the published asset
published
Always true on success
title
Title of the published asset
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
