How can I create Item in the specific group with C#?

Hello,

I have read the following topics.


I can create Item in the first group.
But I could not create Item in the specific group.
How can I create Item in the specific group?

group_id: topics
string query = @"{"“query”":"“mutation{create_item(board_id: 561016511, group_id: topics, item_name: \”“apiTest\”"){id}}""}";
response : Stasus 200 OK
Item is created

group_id: "“Done”"
string query = @"{"“query”":"“mutation{create_item(board_id: 561016511, group_id: ““Done””, item_name: \”“apiTest\”"){id}}""}";
response : Stasus 400 Bad Request

group_id: \"“Done\”"
string query = @"{"“query”":"“mutation{create_item(board_id: 561016511, group_id: \”“Done\”", item_name: \"“apiTest\”"){id}}""}";
response : Stasus 404 Not Found

group_id: 'Done’
string query = @"{"“query”":"“mutation{create_item(board_id: 561016511, group_id: ‘Done’, item_name: \”“apiTest\”"){id}}""}";
response : Stasus 200 OK
But Item is not created.

group_id: \'Done\'
string query = @"{"“query”":"“mutation{create_item(board_id: 561016511, group_id: \‘Done\’, item_name: \”“apiTest\”"){id}}""}";
response : Stasus 200 OK
But Item is not created.

1 Like

I’m having the exact same issue, and would like to get your response.
Thanks!

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.

I finally solved it with your Idea.
Thanks!
Unfortunately I don’t have any other Ideas.