UpdateTask
Updates an automation task configuration.
Use this method to:
- Modify task commands
- Update task triggers
- Change dependencies
- Adjust execution settings
Examples
-
Update command:
Changes the task's command.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68" spec: command: "npm run test:coverage" -
Update triggers:
Modifies when the task runs.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68" metadata: triggeredBy: trigger: - postEnvironmentStart: true
Request body
Response
Success
Changes
Changed in 6 of the 18 revisions of this API.7417
- ▲
removed
subschema #1subschema #2subschema #3from thespec/runsOnrequest propertyoneOflistrequest-property-one-of-removed
- ●
removed the request property
spec/runsOn/terminalrequest-property-removed
- ○
added the new optional request property
spec/prebuildRequiresSuccessnew-optional-request-property
- ○
added
subschema #1subschema #2to thespec/runsOnrequest propertyoneOflistrequest-property-one-of-added
This revision also has 24 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #1subschema #2from thespec/runsOnrequest propertyoneOflistrequest-property-one-of-removed
- ○
added the new optional request property
spec/runsOn/terminalnew-optional-request-property
- ○
added
subschema #1subschema #2subschema #3to thespec/runsOnrequest propertyoneOflistrequest-property-one-of-added
- ▲
- ▲
removed
subschema #1subschema #2subschema #3subschema #4subschema #5from themetadata/triggeredBy/trigger/items/request propertyoneOflistrequest-property-one-of-removed
- ○
added the new optional request property
metadata/triggeredBy/trigger/items/beforeSnapshotnew-optional-request-property
- ○
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6to themetadata/triggeredBy/trigger/items/request propertyoneOflistrequest-property-one-of-added
- ▲
- ▲
removed
subschema #1from thespec/runsOnrequest propertyoneOflistrequest-property-one-of-removed
- ▲
removed
subschema #1subschema #2subschema #3from themetadata/triggeredBy/trigger/items/request propertyoneOflistrequest-property-one-of-removed
- ○
added the new optional request property
metadata/triggeredBy/trigger/items/postMachineStartnew-optional-request-property
- ○
added the new optional request property
metadata/triggeredBy/trigger/items/prebuildnew-optional-request-property
- ○
added the new optional request property
spec/envnew-optional-request-property
- ○
added the new optional request property
spec/runsOn/machinenew-optional-request-property
- ○
added
subschema #1subschema #2to thespec/runsOnrequest propertyoneOflistrequest-property-one-of-added
- ○
added
subschema #1subschema #2subschema #3subschema #4subschema #5to themetadata/triggeredBy/trigger/items/request propertyoneOflistrequest-property-one-of-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
metadatarequest property type/format changed from/toobject/request-property-type-changed
- ▲
the
specrequest property type/format changed from/toobject/request-property-type-changed
- ●
removed
gitpod.v1.UpdateTaskRequest.TaskMetadatafrom themetadatarequest propertyallOflistrequest-property-all-of-removed
- ●
removed
gitpod.v1.UpdateTaskRequest.TaskSpecfrom thespecrequest propertyallOflistrequest-property-all-of-removed
- ○
added the new optional request property
metadata/descriptionnew-optional-request-property
- ○
added the new optional request property
metadata/namenew-optional-request-property
- ○
added the new optional request property
metadata/triggeredBynew-optional-request-property
- ○
added the new optional request property
spec/commandnew-optional-request-property
- ○
added the new optional request property
spec/runsOnnew-optional-request-property
- ▲
- ●
removed the optional property
detailfrom the response with thedefaultstatusresponse-optional-property-removed
- ●