I solved it by getting the group id using this query
query = ‘query {boards (ids: <>) {groups {title id }}}’
I must say this is very not intuitive, the group id is a string not related to real name/content/order, while in the documentation it seams like it’s a real group name.