Unable to change fork_policy via API 2.0

XMLWordPrintable

    • 1
    • 794

      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;
      

       

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

              Created:
              Updated:
              Resolved: