Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

can't create multiple restrictions for a branch using rest api 2.0

Mukesh Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2018

I am trying to create multiple restrictions on a branch via bitbucket rest API 2.0 but getting following error.

{"message": "Something went wrong", "id": "a9d4c19250084908af4dd64eced52045"}
 

JSON: 

[{

  "kind": "restrict_merges",

  "pattern": "testing_branch_restrictions",

  "groups": [

        {

          "owner": {

            "username": "test"

          },

          "slug": "develop"

        }

  ]

}, {

  "kind": "push",

  "pattern": "testing_branch_restrictions",

  "groups": [

        {

          "owner": {

            "username": "test"

          },

          "slug": "develop"

        }

  ]

}]

 
are multiple values not allowed?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events