Wrong response error message from Bitbucket API when using OAuth

Issue #16961 new
Leonardo Montiel staff created an issue

We do not support using OAuth to access the SSH endpoints on the Bitbucket API at this point in time. However, when trying to perform a call to this endpoint, like the example below:

curl -X POST https://bitbucket.org/api/2.0/users/<user>/ssh-keys -H 'Accept:application/json' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' 
-d '{ "label": "<label>", "key":"<ssh_key>" }'

The API returns this response:

{"type": "error","error":{ "message": "Something went wrong", "id": "<code>" }}

It should actually return a 403 error.

Comments (0)

  1. Log in to comment