Bitbucket api update group giving error "malformed groups"

Hi Team,

I was trying to create new branch restrictions , I was using below API but it was giving “error”: { “message”: “malformed groups” }

API I was using to create new branch restriction was

curl -X POST -u "username:password" \
  -H "Content-Type: application/json" \
  -d '{
        "kind": "push",
        "users": [],
        "groups": [ "automation"],
        "branch_match_kind": "branching_model",
        "branch_type": "release"
      }' \

Here groupname was automation and brachtype: release and condition on code push

ERROR details

    "type": "error",
    "error": {
        "message": "malformed groups"

Please let me if any changes required in the above