# Method: projects.locations.workflows.patch

- [HTTP request](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch#try-it)

Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.

### HTTP request

`PATCH https://workflows.googleapis.com/v1/{workflow.name=projects/*/locations/*/workflows/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `workflow.name` | `string` The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` List of fields to be updated. If not present, the entire workflow will be updated. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows#Workflow`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/workflows/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).