Repository Workspace Manipulation
Workspace checkout ref
Set the workspace to follow a different branch or commit (checkout). Currently supports only moving to a branch with an identical commit as the workspace’s current branch, or moving to any branch/commit if the workspace has no working changes.
POST
/
repos
/
{repo_id}
/
workspaces
/
{workspace_id}
/
checkout
Authorizations
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Path Parameters
repo_id
string
requiredThe 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
requiredThe repo ID of the workspace.
Body
application/json
ref_id
string
requiredA branch or commit ID to point the workspace onto