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?