Create snippet API endpoint requires personal/default workspace

XMLWordPrintable

    • Severity 3 - Minor
    • 10

      Issue Summary

      When trying to Create a Snippet using the endpoint

      POST /2.0/snippets

      The request fails if the user account used for authentication does not have a personal workspace.

      Steps to Reproduce

      1. 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 : 

      POST /2.0/snippets/

              Assignee:
              Unassigned
              Reporter:
              Patrik S (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: