Utilizing the Watson Studio GUI
, I have no problems creating a Studio
project and integrating it with a git
repo. I need to script
this process. When using the Watson Data API (2.23.1)
, I can indeed create a project using the .../transactional/v2/projects
REST
call, but that call doesn't appear to have any git
related info in its payload
.
After creating the project (not yet integrated with git
), I then try issuing this REST
call:
.../v2/asset_files/git_transactions/remote
passing the newly created project.
Its payload contains git
info, so I assume it's the one to use to integrate the project with GIT
:
{"repo_url": "https://github.ibm.com/orgn/xxxx.git","access_token":{"git_host":"GitHub Enterprise","token_value":"xxxxxxxxxxxxx" }}
But this call always fails with:
{"code":400,"error":"Bad Request","reason":"Invalid request body, access_token format is not valid","message":"The server cannot or will not process the request due to an apparent client error (e.g. malformed request syntax)."}
The message mentions the access_token
format being invalid, but I'm following the api documentation wrt format.
Any guidance would be appreciated.