The rollback command is used to revert the Git header to a specified commit ID and undo the associated changes.

JSON Input Data Format
{
    "id": string,
    "branch": string,
    "commit": string
}
id * Specifies the ID of the repository.
branch * Specifies the name of the branch.
commit * Specifies the commit ID to which to revert.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "HEAD is now at d26da33 repository mytest.repo was created"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}