Error 500 on Commit API v2

Hi I am trying to commit a liveboard from one branch to another. Here is the code I'm using: https://gist.github.com/wallyflops/9d68b4cd1d94dae4f610e192e1fcfc63 Here is the error I'm getting Failed to commit. Status code: 500 The overall flow is I'm: - Getting a bearer token from https://viooh-dev.thoughtspot.cloud/api/rest/2.0/auth/token/full - Using the Commit endpoint https://viooh-dev.thoughtspot.cloud/api/rest/2.0/vcs/git/branches/commit
Gist
gist:9d68b4cd1d94dae4f610e192e1fcfc63
GitHub Gist: instantly share code, notes, and snippets.
5 Replies
Swarnika
Swarnika5mo ago
And if you try to achieve the same via Developer Section (not via your script), is it working?
Swarnika
Swarnika5mo ago
There are a few things you need to take care of before hitting git/branches/commit api. Please checkout https://developers.thoughtspot.com/docs/git-configuration#_configure_git_repository
Configure Git integration
Configuring the Git integration for a ThoughtSpot instance
wallyflops
wallyflopsOP5mo ago
Sorry i get the same error in the playground just on a call and then ill take a proper look at this doc
Swarnika
Swarnika5mo ago
yes sure, even after following the doc you get into some trouble, let us know.
wallyflops
wallyflopsOP5mo ago
I think in need to refine my problem, I am just doing a proof-of-concept How can I hit this endpoint successfully, I have a dev/main branch on my Git and Thoughtspot is connected as per docs. I think im missing the mapping file, ill try add that

Did you find this page helpful?