This is kind of confusing, and I’m not sure if there has been a recent change or not.
According to the documentation:
**Please note** that every account has a *Main* workspace that returns a null workspace ID because you cannot return *Main* workspace details via the API.
Thanks for bringing this to our attention! I also had not yet encountered this, but I found out that this is due to our multi-product migration that is being completed over the next few months.
The end result will allow all users to query the main workspace, but for now, only some users have this capability. I’ve added a note for clarification in the documentation, and we will of course provide more updates/new documentation as these changes are rolled out.
Thanks for the information @rachelatmonday. Do you know if this new main workspace functionality will make the main workspace appear in a query like this:
query { workspaces {id name}}
Currently, the main workspace doesn’t appear in this query. Also, do you happen to know when the migration will be complete? Is this functionality a part of a new API version, or will the main workspace suddenly appear in a query like the one above?
Thanks for pinging me! I am waiting to clarify with our dev team, but I will let you know ASAP. I do know that this functionality will not me a new addition - in other words, the query you shared will start returning an ID.
This query will return the main workspace for accounts that have already been migrated. If the account hasn’t been migrated, the query will function as it always has.
No timeline at the moment. It’s a big migration that will take a lot of time. We are in the process of migrating and still have a ways to go. Any updates will be communicated through our standard channels as we get them
This is not part of a new API version. The only new feature related to versioning is the is_default_workspace field that you can use to return whether or not the workspace is the main one (see announcement here).