Method: projects.locations.workflows.create

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

HTTP request

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

The URL uses gRPC Transcoding 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 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 Workflow.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.