Skip to main content

Publish a version from an uploaded file

POST 

/api/:accountName/task-definitions/:taskDefinitionName/versions

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.

Request​

Responses​

The version was published.