# Workflows API

Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API.

- [REST Resource: v1beta.projects.locations](https://docs.cloud.google.com/workflows/docs/reference/rest#v1beta.projects.locations)
- [REST Resource: v1beta.projects.locations.operations](https://docs.cloud.google.com/workflows/docs/reference/rest#v1beta.projects.locations.operations)
- [REST Resource: v1beta.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/rest#v1beta.projects.locations.workflows)
- [REST Resource: v1.projects.locations](https://docs.cloud.google.com/workflows/docs/reference/rest#v1.projects.locations)
- [REST Resource: v1.projects.locations.operations](https://docs.cloud.google.com/workflows/docs/reference/rest#v1.projects.locations.operations)
- [REST Resource: v1.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/rest#v1.projects.locations.workflows)

## Service: workflows.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

- <https://workflows.googleapis.com/$discovery/rest?version=v1>
- <https://workflows.googleapis.com/$discovery/rest?version=v1beta>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://workflows.googleapis.com`

## REST Resource: [v1beta.projects.locations](https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations/get` | `GET /v1beta/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations/list` | `GET /v1beta/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1beta.projects.locations.operations](https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.operations/delete` | `DELETE /v1beta/{name=projects/*/locations/*/operations/*}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.operations/get` | `GET /v1beta/{name=projects/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.operations/list` | `GET /v1beta/{name=projects/*/locations/*}/operations` Lists operations that match the specified filter in the request. |

## REST Resource: [v1beta.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/create` | `POST /v1beta/{parent=projects/*/locations/*}/workflows` Creates a new workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/delete` | `DELETE /v1beta/{name=projects/*/locations/*/workflows/*}` Deletes a workflow with the specified name. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/get` | `GET /v1beta/{name=projects/*/locations/*/workflows/*}` Gets details of a single Workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/list` | `GET /v1beta/{parent=projects/*/locations/*}/workflows` Lists Workflows in a given project and location. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/patch` | `PATCH /v1beta/{workflow.name=projects/*/locations/*/workflows/*}` Updates an existing workflow. |

## REST Resource: [v1.projects.locations](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations/get` | `GET /v1/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations/list` | `GET /v1/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1.projects.locations.operations](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.operations/delete` | `DELETE /v1/{name=projects/*/locations/*/operations/*}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.operations/get` | `GET /v1/{name=projects/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.operations/list` | `GET /v1/{name=projects/*/locations/*}/operations` Lists operations that match the specified filter in the request. |

## REST Resource: [v1.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/create` | `POST /v1/{parent=projects/*/locations/*}/workflows` Creates a new workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/delete` | `DELETE /v1/{name=projects/*/locations/*/workflows/*}` Deletes a workflow with the specified name. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/get` | `GET /v1/{name=projects/*/locations/*/workflows/*}` Gets details of a single workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/list` | `GET /v1/{parent=projects/*/locations/*}/workflows` Lists workflows in a given project and location. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions` | `GET /v1/{name=projects/*/locations/*/workflows/*}:listRevisions` Lists revisions for a given workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/patch` | `PATCH /v1/{workflow.name=projects/*/locations/*/workflows/*}` Updates an existing workflow. |