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

Unable to change fork_policy via API 2.0

XMLWordPrintable

      Trying to change fork_policy on an existing Bitbucket repo via API using PUT doesn't change the fork settings on the repo:

      Steps to reproduce:

      1. Send the following API request to change the fork policy of an existing Bitbucket repo from 'private forks only' to 'no forks'
      #!JSON
      
      curl -X PUT -v -u username:password -H "Content-Type: application/json" https://api.bitbucket.org/2.0/repositories/<username>/<reposlug> -d &#x27;{"fork_policy": "no_forks"}&#x27;
      

       

              Unassigned Unassigned
              vchoo Vivian C
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: