Kosuke
(Kosuke Shibayama)
May 12, 2020, 1:15pm
1
Hello,
I have read the following topics.
I’ve been struggling with converting my GraphQL query into a C# query. All I get is a bad request or a parse error. This is what my query looks like atm.
var query = QueryMondayApi(@“{ ““query””: ““mutation { create_item(board_id: " + BoardId + @”, group_id: " + “new_group61452” + @”, item_name: "”" + item.ProductNumber +
@“"”, column_values: "“{ \"”" + ShipNameId + @“\"”: \"“” + item.ShipName + @“\"”, \"“”
+ CcId + @“\"”: \"“” + item.NoCc + @“\"”, \"“”
+ EuId + @“\"”: \"“” + eu + @“\"”, \"“…
Hi Community,
I’m trying to create a new pulse, the query works fine but, if the item_name have a long text with spacebar it give me a 400 response or parse
I’m working with Java.
Request working:
String query = “{"query":"mutation{create_item(board_id: 88486632, group_id: topics, item_name: apiTest){id}}"}”
Request doesn’t work:
Try double quote text with scaped quotes
String query = “{"query":"mutation{create_item(board_id: 88486632, group_id: topics, item_name: "api Test"){id}}"}”
Err…
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
maayan
(maayan)
May 23, 2020, 5:15pm
2
I’m having the exact same issue, and would like to get your response.
Thanks!
maayan
(maayan)
May 23, 2020, 5:22pm
3
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.
Kosuke
(Kosuke Shibayama)
May 27, 2020, 10:00am
4
I finally solved it with your Idea.
Thanks!
Unfortunately I don’t have any other Ideas.