v24

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-02251756.0 KB

Reset a project branch.

If branch === main, the branch is reset to target_config_sha. Otherwise, the branch is reset to main.

put/v0/projects/{project}/branches/{branch}/reset

Path parameters

projectstring required
branchstring required

Query parameters

target_config_shastring

The commit SHA to reset the main branch to. Required if resetting the main branch; disallowed otherwise.

Response

success

object'project_branch' required
branchstring required

Branch name

orgstring required
projectstring required

Project name