Git Push
POST/api/v1/git/push
Push the current model to a Git repository branch.
Three outcomes based on target branch state:
- Branch does not exist → create and push (today's path).
- Branch exists + expected_base_sha matches remote tip → fast-forward push.
- Branch exists + expected_base_sha is None → 409 (today's UX preserved).
- Branch exists + expected_base_sha mismatches → 409 with code "branch_moved".
Request
Responses
- 200
- 401
- 409
- 422
Successful Response
Missing or invalid JWT
Target branch already exists or lock conflict
Invalid request or model data