Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-19071

Default reviewer PUT method throws bad request if JSON content type header is included

    XMLWordPrintable

Details

    Description

      As per the title, when using the PUT method, if a Content-Type:application/json header is included, the call will return a "Bad request" error.

      This is not consistent with other methods such as DELETE, which does not throw this error even though it also does not support JSON parameters.

      The affected API endpoint is this one:
      https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/default-reviewers/%7Btarget_username%7D

      Attachments

        Activity

          People

            Unassigned Unassigned
            lmontiel@atlassian.com Leonardo M
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: