Create a collection with metabase python api

How to make a post request next?

Hi @Anum
Have you even tried looking at the documentation?

Yes, what should be the parent id here?

@Anum The ID of the collection you want to create the collection in. Exactly what the documentation says:

Create an empty collection. Provide the name of the collection, and the name or id of the parent collection (i.e. where you want the created collection to reside). If you want to create the collection in the root, you need to provide parent_collection_name='Root' .

This worked. Thank you.

@flamber How can we create a dashboard within a collection using API call?

@Anum Have you tried searching or tried doing anything before asking?
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

Is there a python wrapper for this?

@Anum Yes, like the documentation says using the general REST functions - there's no custom function: