Reputation: 1907
Getting error while calling MS Fabric API using POSTMAN. I have no body in the POST call. Where is it restricted? Why is it forbidden?
https://api.fabric.microsoft.com/v1/workspaces/31015eb5-a60f-4dcd-9108-***/git/updateFromGit
Error:
403 Forbidden
{
"requestId": "5d6babd3-5ccb-4970-9392-***",
"errorCode": "RequestFailed",
"message": "Unable to process the request"
}
Upvotes: 1
Views: 43
Reputation: 12405
This API needs a body (see doc page).
Here is a sample request with its body (also from the doc):
POST https://api.fabric.microsoft.com/v1/workspaces/1565e6a3-c020-4c0c-dda7-92bafe99eec5/git/updateFromGit
{
"workspaceHead": "eaa737b48cda41b37ffefac772ea48f6fed3eac4",
"remoteCommitHash": "7d03b2918bf6aa62f96d0a4307293f3853201705",
"conflictResolution": {
"conflictResolutionType": "Workspace",
"conflictResolutionPolicy": "PreferWorkspace"
},
"options": {
"allowOverrideItems": true
}
}
Upvotes: 1