New `group_color` argument for `create_group` mutation

The new group_color argument allows you to specify a group’s color when using the create_group mutation. You can find a list of the accepted values here.

This argument is available in API versions 2024-04 and later.

GraphQL

mutation {
  create_group (board_id: 1234567890, group_name: "new group", group_color: "#ff642e", relative_to: "test_group", position_relative_method: before_at) {
    id
  }
}

JavaScript

let query = "mutation { create_group (board_id: 1234567890, group_name: \"new group\", group_color: \"ff642e\", relative_to: \"test group\", position_relative_method: before_at) { id } }";

fetch ("https://api.monday.com/v2", {
  method: 'post',
  headers: {
    'Content-Type' : 'application/json',
    'Authorization' : 'YOUR_API_KEY_HERE',
    'API-Version' : '2024-04'
   },
   body: JSON.stringify({
     query : query
   })
  })
   .then(res => res.json())
   .then(res => console.log(JSON.stringify(res, null, 2)));
1 Like

For me this does not work with all colors from the documentation. The only colors that work for me are these:
#037f4c
#fdab3d
#579bfc
#e2445c
#00c875
#c4c4c4
#808080
#0086c0
#9cd326
Here I tried to set the group color to yellow.

Hello there @deniskarmazen,

Would you be able to please fill this form so our team can take a look into this?

Looking forward to hearing from you via the form!

Cheers,
Matias

I’m trying to create a group with an argument of “group_color” but it says that create_group does not accept group_color argument. However, the api reference explicitly says this argument is acceptable,

Does anyone have an idea?

Hi @tomaz309,

Can you please share your mutation?

I just copy pasted the code sample in the announcement, inserted my own board ID, and the mutation ran successfully with the group_color argument! I wonder if there might be a different formatting issue that we can take a look at.

Best,
Rachel