Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
vi1996ash
Microsoft Employee
Microsoft Employee

Rest Api to create notebook in folder

Do we have an api to create or update notebook or data pipeline in a folder in fabric workspace?

1 ACCEPTED SOLUTION
nilendraFabric
Super User
Super User

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

View solution in original post

6 REPLIES 6
v-pagayam-msft
Community Support
Community Support

Hi @vi1996ash ,

Could you please confirm if the issue has been resolved on your end? If a solution has been found, it would be greatly appreciated if you could share your insights with the community. This would be helpful for other members who may encounter similar issues.
Thank you for your understanding and assistance.

 

v-pagayam-msft
Community Support
Community Support

Hi @vi1996ash ,
Following up to check whether you got a chance to review the suggestion given.I hope it helps.If so,consider accepting it as solution,it will be helpful for other members of the community who have similar problems as yours to solve it faster. Glad to help.
Thank you.

burakkaragoz
Community Champion
Community Champion

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.

v-pagayam-msft
Community Support
Community Support

Hi @vi1996ash ,
Has the issue been resolved on your end? If so, please share your solution and mark it as "Accept as Solution." This will assist others in the community who are dealing with similar problems and help them find a solution more quickly.
Thank you.

Srisakthi
Super User
Super User

Hi @vi1996ash ,

 

You can create notebooks using api and manually move to the folder.

Here is the sample snippet using python

def create_update_notebook_definition(notebook_name):
notebook_details = {
"displayName": f'{notebook_name}'
}
response = requests.post(
url = f"https://api.fabric.microsoft.com/v1/workspaces/{target_workspace_id}/notebooks",
headers=headers,
json=notebook_details,
verify=False)

 

 

Regards,

Srisakthi

nilendraFabric
Super User
Super User

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.