-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 3 - Minor
-
10
-
Issue Summary
When trying to Create a Snippet using the endpoint
The request fails if the user account used for authentication does not have a personal workspace.
Steps to Reproduce
- Call the API endpoint authenticating with a user that has no personal workspace :
curl -X POST -u "user_with_no_personal_wkspace:app_password" https://api.bitbucket.org/2.0/snippets -F title="My snippet"
Expected Results
Inform the user that a workspace should be specified in the URL
Actual Results
The request fails with an HTTP 500 error.
Workaround
Use the workspace-specific endpoint :