I am coding an api in C# .net. Here is a query I send to Monday.com which works just fine and retrieves the items:
{“query”: "{boards (ids: 5493163446) { items { id name state } } } "}
I have patterned create_item after that but all of these seven mutations result in a Server Error 500. This is my first create so I could use some basic help, for example, do I need to use the word query or just mutation and is the mutation in quotes or curly braces, etc. I have removed any column values to try and simply the query as much as possible - could it be complaining because there are no column values, just the name?
{“query”: "mutation: create_item (“board_id”: 5493163446, “group_id”: “new_group”, “item_name”: “This item imported programmatically”) " { id } }
{“query”: "mutation {create_item (“board_id”: 5493163446, “group_id”: “new_group”, “item_name”: “This item imported programmatically”) } " { id } }
{“query”:“mutation { create_item (board_id: 5493163446, group_id: “new_group”, item_name: “MyNewItem”, column_values: “{“state”:“active”}”) { id } }”}
{"mutation {create_item (“board_id”: 5493163446, “group_id”: “new_group”, “item_name”: “This item imported programmatically”) } " { id } }
{“mutation”: {create_item (“board_id”: “5493163446”, “group_id”: “new_group”, “item_name”: “This item imported programmatically”) } { id } }
{“mutation”: “{create_item (“board_id”: “5493163446”, “group_id”: “new_group”, “item_name”: “This item imported programmatically”) }” { id } }
mutation { create_item (board_id: 5493163446, group_id: new_group, item_name: “This item imported programmatically”) { id } }
Be grateful for any suggestions you may have - willing to try anything.