Repository Commit Manipulation
Revert commit
The operation reverts any changes done in the single commit represented by revert_ref_id (compared to its own parent). These opposing changes are then applied into the branch represented by base_id. If any changes were done between revert_ref_id and base_id, they will be checked for conflicts with the revert changes.
POST
/
repos
/
{repo_id}
/
revert
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.
Query Parameters
base_id
string
A reference to a base unto which changes will be applied
revert_ref_id
string
A reference to a source version to revert, currently only commit ID is supported