Hi,
I am trying to set git credentials for my service principal. I follow the process described here but I get a 403 error when making the POST request to ${DATABRICKS_HOST}/api/2.0/git-credentials with service principal token.
By the way, I also cannot access this API with my PAT (see below) and get the same 403 Invalid access token error.
Is there any restriction on git-credentials API ? How to make it work ?
Regards,
Sรฉbastien
curl -X GET ${DATABRICKS_HOST}/api/2.0/git-credentials --header 'Authorization: Bearer ${DATABRICKS_TOKEN}'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 403 Invalid access token.</title>
</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /api/2.0/git-credentials. Reason:
<pre> Invalid access token.</pre></p>
</body>
</html>