- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Performs a Git reset for uncommitted files in a Workspace.
HTTP request
POST https://dataform.googleapis.com/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset
The URL uses gRPC Transcoding syntax.
Path parameters
name
string
Required. The workspace's name.
Authorization requires the following IAM
permission on the specified resource name
:
-
dataform.workspaces.reset
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "paths" : [ string ] , "clean" : boolean } |
| Fields | |
|---|---|
paths[]
|
Optional. Full file paths to reset back to their committed state including filename, rooted at workspace root. If left empty, all files will be reset. |
clean
|
Optional. If set to true, untracked files will be deleted. |
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform -
https://www.googleapis.com/auth/bigquery
For more information, see the Authentication Overview .
IAM Permissions
Requires the following IAM
permission on the name
resource:
-
dataform.workspaces.reset
For more information, see the IAM documentation .

