Welcome to the new monday developer community
Discussions category for everything related to app development on top of monday.com
Recently active
When querying my boards I put arguments to my query like: $ex_query = ‘{ boards (limit: 4, board_kind:public) { name } }’; This works fine. As soon I change the board_kind to shareable (in stead of public) I get the following message returned from my query: [message] => Argument ‘board_kind’ on Field ‘boards’ has an invalid value. Expected type ‘BoardKind’. Looks like shareable is not a valid board_kind (but it is listed in the documentation). Please help with a query for all shareable boards.
I can successfully place a very simple query in the interactive client, as well as using cURL: query{account{id, name}} But when I place the same query using Python, I get the following response: '{"errors":[{"message":"No query string was present"}],"account_id":XXXXXXX}' The API authentication works, because I am getting my account id back with the response. But every method I use returns “No query string was present”. Any ideas? My relevant code snippet: headers = {"Authorization" : creds.api_token} request = requests.post(creds.monday_api_url, json={"query" : "{account{id, name}}"}, headers=headers) if request.status_code == 200: return request.json() else: raise Exception( """ Query failed to run by returning code of {}. {} """.format(request.status_code, query))
If anyone familiar with Node.js wants to show an example of how to post to the new V2 Graphql api. Fetch or Request methods would be great as well.
Hi all, I am currently migrating old data requests from the API v1 to the new GraphQL API v2. I am having trouble figuring out how to parse the resultant JSON using something like JQ. I want to take s board, then take the column titles as my data “names” and the item values as the values. If anyone has tips on how to parse the json I would be appreciative. I have attached two example JSONs, the first being out.png which is the data I want to parse. The second is pipelineExample.png which is the format I want to obtain. I would have attached the JSON files but the forums do not support json attachments. Best, Isaiah Fisher
Hi, having trouble getting this to work, the API website simply has: change_column_value (board_id: 20178755, item_id: 200819371, column_id: "status", value: "{\\"index\\": 1}") { id } } which doesn’t work like the usual queries. Thanks in advance.
I have been doing quite a bit of automation. And have just hammered out some code today. this is some basic code to do simple queries in Powershell. I will obfuscate the API token to protect the not so innocent. [Net.ServicePointManager]::SecurityProtocol = “tls12, tls11, tls” $url = “https://api.monday.com/v2/” $hdr = @{} $hdr.Add(“Authorization” , “BIG LONG Token”) $hdr.Add(“Content-Type”,“application/json”) $bodytxt=‘{“query”:“{boards(limit:1){id name}}”}’ $response = Invoke-WebRequest -Uri $url -Headers $hdr -Method Post -body $bodytxt $resBoards = ($response.content | ConvertFrom-Json) $bodytxt = ‘{“query”:"{boards(ids:’ + $($resSheet.data.boards[0].id) + ‘),{columns{archived id title}}}"}’ Write-Host $bodytxt $response = Invoke-WebRequest -Uri $url -Headers $hdr -Method Post -body $bodytxt $resColumns = ($response.content | ConvertFrom-Json) $bodytxt = ‘{“query”:"{boards(ids:’ + $($resSheet.data.boards[0].id) + ‘),{items {creator{id} creator_id group{ id } id nam
Hey Guys! I’m trying to update status column via API using the label instead of the ID (I saw that it is well documented in the new API docs)… the problem is that it’s not working… this is my query: var query = { query: mutation ($board: Int!, $item: Int!, $column: String!, $value: JSON!) { change_column_value ( board_id: $board , item_id: $item , column_id: $column, value: $value ) { name } }, variables: { “board”: boardId, “item”: parseInt(itemId), “column”: columnId, “value”: JSON.stringify({ “label”: “Owner Review” }) } } this is the response: { error_code: ‘ColumnValueException’, status_code: 400, error_message: ‘change_column_value invalid value’, error_data: { column_value: ‘{“index”=>{:label_index=>16}}’, column_type: ‘StatusColumn’ } } I tried to use Ids to match the color numbers but I saw that you have “color mapping” which makes the color-id match inconsistent
Hi, I did for my own purposes long time ago python library (GitHub - klepek/monday_library: Python library for Monday.com (formerly dapulse)), today I have released updated version for v2 api. Feel free to fork/submit pull requests if you will find this useful. It might be a bit ugly 🙂
is it possible to dump to (googlesheets) for example, pulses and there updates (example its new status & time date of change). we are trying to build analytics & dash boards with google data studio with pulse data that includes is status changes over time.
So under API v1, I was using the “/v1/boards/{board_id}/pulses.json” method to find the latest created pulse on a board. How can I do this with v2? I have: { boards(ids: 183208254) { items { id name } } } But not seeing what I can add to the items group to retrieve the creation date. Is there an alternate/better way to do this? Otherwise, when are webhooks coming out so I can capture the pulse creation that way? Best, Jake
axios({ url: ‘https://api.monday.com/v2’, headers: { Authorization: 'Bearer ’ + process.env.mondayToken }, method: ‘get’, data: { query: `query { boards(ids: ID_HERE) { description } }` } }).then((result) => { console.log(result.data.data.boards[0]) }) .catch(function (error) { console.log(error) }); }) } log returns { description: ‘post to [monday.com](http://monday.com/)’ }
Have Head Butted for a few hours how to change column values. this is the most frequent change and the most annoying. I get all the Query stuff and creating items seems to behave as well. Is Anyone else using Insomnia to do their trial and Error. Can someone share working examples for mutation { change_column_value( it’s the only one I can’t make work. I just need to see valid examples without the JSON.Stringify abstraction.
I’m wondering if the Grapghql schema supports filtering, or perhaps will in the future, so if I have a column type of date I can filter by upcoming dates? I’m not entirely sure if it does or not I’m just wondering if this kind of call is yet possible in V2. Thank you for any feedback here. Great work with choosing to use GraphQl as I know it a huge leap forward 🙂
For discussions and questions about developing apps on monday.com, including the monday apps framework, GraphQL API, SDK and general programming questions. NOTE: If you think you have a bug with your monday.com account, please do not report it here. Instead, drop us a line to support@monday.com and our customer success managers will get back to you within 10 minutes! Please read this post for resources, helpful threads, and guidelines for new posts. Resources to get started! As you begin exploring the monday developers framework, check out these references: API Documentation: reference for using our GraphQL API to read/write monday.com data 🔗 monday Apps Framework: to learn how to build native features on top of monday.com 🧱 Guidelines for new posts When creating a new post, please keep these things in mind to ensure other community members can help you in the best way: Add your post to the relevant subcategory to help keep our community organized. Please st
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.