Request Format
Send a singlemetadata object.
Metadata Fields
Branch name to reset (no
refs/ prefix).Commit SHA to reset the branch to.
Object with
name and email.Guard to ensure the current tip matches before applying.
Commit message for the restore commit.
Object with
name and email.JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
Error Responses
Missing or invalid fields
Invalid JWT or missing authorization header
Missing
git:write scopeRepository or commit not found
Expected head SHA does not match