Restore Commit
deprecated
Create a new commit that resets a branch back to a specific commit SHA while preserving normal Git history.
Deprecated: Use /api/repos/{repo_name}/restore-commit instead.
POST
Restore Commit
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/x-ndjson
Send a single NDJSON metadata line describing the branch to restore and the commit SHA to restore it to.
NDJSON stream containing one metadata object.
Restore Commit