TaskDefinitions
List task definitions
Returns the account's task definitions, each entry a task definition with its name, whether it is public and its latest version: the title its file's `name` declares (`displayName`), its version, identifier and publication date. A task definition with no versions is listed too, with `latestVersion` null. Long lists are paged. When more than one page exists the response's Link header carries the first, last, previous and next pages.
Create a task definition
Registers the name that versions are published under and sets whether it is visible beyond the account. It carries no content of its own until a version is published.
Read a task definition version
Returns one published version: the title its file's `name` declares (`displayName`), the identifier a workflow references it by, when it was published, whether it is public, the inputs it declares with their defaults and whether each is required, and the container image and arguments it executes.
Delete a task definition version
Removes one published version and leaves the rest in place. Workflows pinned to that version can no longer resolve their task. The version string stays reserved, so it can never be published again. Deleting the last version leaves the task definition with no versions; delete the task definition to remove it.
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.
List a task definition's versions
Returns the versions published under one task definition, each with the title its file's `name` declares (`displayName`), its identifier, publication date and whether it is the latest. Long lists are paged. When more than one page exists the response's Link header carries the first, last, previous and next pages.
Delete a task definition
Removes the task definition and every version published under it. Workflows that reference it can no longer resolve their task, so retire those references first. The version strings published under it stay reserved and can never be published again, including to a task definition later created with the same name.
Change a task definition's visibility
Switches the definition between being usable only inside the account and being public, for other accounts to reference. The change applies to every version under it. Making it public reserves each of its versions for every account for good; making it private again releases none. If a version of the definition is published while it is being made public, nothing changes and the request fails with a 409 conflict; send it again.