How to query all boards with a specific workspace in Monday Api?

1.8k Views Asked by At

I want to list all boards from a specific workspace?..How to correctly write such query

I am doing this way

query {
boards (workspace_id :1405052) {
name
}
}

Getting this error

"errors": [ { "message": "Field 'boards' doesn't accept argument 'workspace_id'",

3

There are 3 best solutions below

0
Dmitriy Patsovskiy On

query { boards { id workspace_id } }

1
Diego Nespoli On

you have to use "ids" and not "workspace_id " try this: query { boards (ids: 1405052) { name } }

Have a nice day!

0
Inn0v8_m8 On

See this thread that states that it is not yet directly implemented. This is how they expect you to do it: "That said, you can query all boards within your account, fetch the workspace ID that they are placed in, and then filter those out in your application’s code"