Hey @DK_89, we at monday.com don’t have any C# examples just yet, but maybe someone else here does!
I did a bit of Googling and found an example of how to make an HTTP POST request in C# here. With GraphQL, the data in your POST request dictates the API call you’re making. This is different from REST, where each endpoint corresponds to a different call or operation.
The following example shows how to structure a query that gets column values for a specific subset of line items and columns on a board.
Your headers should contain your API key, and indicate that the request body is JSON-formatted:
{
"Authentication" : "API_KEY_HERE",
"Content-Type" : "application/json"
}
The actual content of the POST request should send your query and any variables in the request body like below. If you are not sending any variables, you can ignore the “variables” key-value pair.
{
"query" : "query($rows:[Int!], $cols:[String!]){items(ids:$rows){column_values(ids:$cols){text value}}}",
"variables" : {"rows" : [111,222], "cols": ["status", "number"]}
}
For mutations, your request body might look something like this (notice we’re still using the query key, despite it being a mutation).
{
"query" : "mutation {create_webhook(board_id:148203423, event:create_item, url: \"https://myurl.ngrok.io\") { id } }"
}
Let me know if that helps!