POST
/
repos
/
{repo_id}
/
workspaces
/
{workspace_id}
/
reset
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/workspaces/{workspace_id}/reset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "all": true,
  "paths": [
    "<string>"
  ]
}'
{
  "success": [
    "<string>"
  ],
  "fail": [
    "<string>"
  ]
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

workspace_id
string
required

The repo ID of the workspace.

Body

application/json
all
boolean
paths
string[] | null

Inclusion list of paths to include in the operation. If null, all paths will be included.

Response

200 - application/json
success
string[]
required

Paths that were successfully reset.

fail
string[]
required

Paths that were not found.