Change a task definition's visibility
PATCH/api/:accountName/task-definitions/:taskDefinitionName
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.
Request
Responses
- 204
The visibility was changed.