# Method: projects.locations.workflows.create

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

Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return `google.rpc.Code.ALREADY_EXISTS` error.

### HTTP request

`POST https://workflows.googleapis.com/v1beta/{parent=projects/*/locations/*}/workflows`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `workflows.workflows.create` |

### Query parameters

| Parameters ||
|---|---|
| `workflowId` | `string` Required. The ID of the workflow to be created. It has to fulfill the following requirements: - Must contain only letters, numbers, underscores and hyphens. - Must start with a letter. - Must be between 1-64 characters. - Must end with a number or a letter. - Must be unique within the customer project and location. |

### Request body

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

### Response body

If successful, the response body contains a newly created 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).