Skip to main content

TaskDefinitions

📄️Publish a version from a connected source

Reads a task definition file from a repository on a connected source provider and publishes it under the given version. The path names the definition file, and the reference selects a branch, tag or commit; without one the repository's default branch is read. A published version is immutable, so workflows referencing it keep resolving to the same content. A version string can be published only once per task definition name: one published before, even if it was deleted since, is refused with a 409 conflict, and so is one that was public under this account name, whichever account published it. When no task definition has the name, the call creates it with this version as its first, private unless `isPublic` is true, and a refused version leaves nothing behind. An existing task definition keeps its visibility.

📄️Publish a version from an uploaded file

Publishes a task definition version from a file sent with the request, for definitions that do not live in a connected source repository. A published version is immutable, so workflows referencing it keep resolving to the same content. A version string can be published only once per task definition name: one published before, even if it was deleted since, is refused with a 409 conflict, and so is one that was public under this account name, whichever account published it. When no task definition has the name, the call creates it with this version as its first, private unless `isPublic` is true, and a refused version leaves nothing behind. An existing task definition keeps its visibility.