v52

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2026-08-03134119177.4 KB
branches

revert

post/repositories/{repository}/branches/{branch}/revert

Request body

refstring required

the commit to revert, given by a ref

parent_numberinteger required

when reverting a merge commit, the parent number (starting from 1) relative to which to perform the revert.

forceboolean
allow_emptyboolean

allow empty commit (revert without changes)

Response

revert successful