Method: projects.locations.repositories.workspaces.moveDirectory

Moves a directory (inside a Workspace), and all of its contents, to a new location.

HTTP request

POST https://dataform.googleapis.com/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
workspace

string

Required. The workspace's name.

Authorization requires the following IAM permission on the specified resource workspace:

  • dataform.workspaces.moveDirectory

Request body

The request body contains data with the following structure:

JSON representation
{
  "path": string,
  "newPath": string
}
Fields
path

string

Required. The directory's full path including directory name, relative to the workspace root.

newPath

string

Required. The new path for the directory including directory name, rooted at workspace root.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the workspace resource:

  • dataform.workspaces.moveDirectory

For more information, see the IAM documentation.