How to get folders in the main workspace via the API?

Is it possible to get the folder names in the main workspace via the API?

I’ve tried the following, and none seem to work:

The following two queries return no data:
query { folders (workspace_ids: "null") {id name}}
query { folders (workspace_ids: -1) {id name}}

The following query returns all the folders in all workspaces:
query { folders (workspace_ids: null) {id name}}

Hello there @PluginGenie,

You were close!

You can use a query like this one:

{
  folders(workspace_ids: [null]) {
    name
    id
  }
}

Hope that helps!

Cheers,
Matias

3 Likes