Forum Discussion
Rest Api to create notebook in folder
- 1 year ago
Hi vi1996ash
You can use the Microsoft Fabric REST APIs to create and update notebooks and data pipelines within a workspace, but direct folder (subfolder) targeting is not currently available through the API. All items are created at the workspace level, and folder management require manual steps
Hi vi1996ash ,
Yes, it is possible to create notebooks or pipelines inside a workspace using the REST API on Microsoft Fabric, but currently there is no specific API that supports creating notebooks directly inside a folder.
Alternative Approach:
You can create notebooks at the workspace level with the Microsoft Fabric REST API.
The created notebooks are placed in the default folder.
Since folder structure support is still limited, GUI or manual intervention may be required for folder-based placement or migration.
For CICD Scenarios:
Automation can be done with REST API calls via Azure DevOps or GitHub Actions.
It is possible to send Notebook content in JSON format via API.