Skip to navigation

Publish a skill or collab agent

Beta

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_idstringRequired
ID of the skill or collab agent to publish

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
expected_version_idstring or nullOptional

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.

notestring or nullOptional
Optional release note shown in the publish history
version_idstring or nullOptional
Existing version to promote to published. Omit to snapshot and publish the current draft.

Response

Successful Response
asset_idstring
ID of the published asset
asset_typestring
Type of the published asset
publishedboolean
Always true on success
titlestring
Title of the published asset

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error