---
title: "UpdateTask"
method: POST
path: "/gitpod.v1.EnvironmentAutomationService/UpdateTask"
tags: ["gitpod.v1.EnvironmentAutomationService"]
---

# UpdateTask

`POST /gitpod.v1.EnvironmentAutomationService/UpdateTask`

## Request body

- GitpodV1UpdateTaskRequest
  - `dependsOn` string[] — dependencies specifies the IDs of the automations this task depends on.
  - `id` string, uuid
  - `metadata` GitpodV1UpdateTaskRequestTaskMetadata
    - `description` string, nullable
    - `name` string, nullable
    - `triggeredBy` GitpodV1UpdateTaskRequestAutomationTriggerUpdate — unresolved $ref
  - `spec` GitpodV1UpdateTaskRequestTaskSpec
    - `command` string, nullable
    - `runsOn` GitpodV1RunsOn
      - `docker` GitpodV1RunsOnDocker, required
        - `environment` string[]
        - `image` string

## Response `200`

Success

- GitpodV1UpdateTaskResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/27f7bd641de1/schema)
