How to create a folder inside a space using rest api?

I am trying to create a folder using rest api inside space, I am able to create space but not able to create the folder inside space and even not getting any reference link or documentation.

Creating a folder is the same as creating a space (POST /catalog · Dremio).

Just POST a folder object to the endpoint and make sure the path is [“sourceName”, "folderName]