Forum Discussion
REST API vs. Notebookutils Lakehouse Update Issue
- 9 months ago
Hi stuckerj,
Thank you for reaching out to Microsoft Fabric Community.
Thank you for sharing the detailed analysis, yes there is a difference between the REST API and the notebookutils behavior.
At present, updating a notebook’s default Lakehouse is not fully supported through the public REST API. When an .ipynb payload is sent, the API accepts it, returns 202 Accepted but never completes the async update, this is a known product limitation.
The supported and working method is using notebookutils.notebook.updateDefinition from another notebook. It runs inside fabric with the correct context. If REST must be used then it requires a full .py notebook definition and still may not complete fully.
Thanks and regards,
Anjan Kumar Chippa
- 9 months ago
Hi stuckerj,
Yes, that’s exactly the right approach. Creating a separate notebook to programmatically configure or update other notebooks is a solid and supported workaround. It works because the command runs inside the fabric and has the right access to update lakehouse settings properly.
Thanks and regards,
Anjan Kumar Chippa
Hi stuckerj,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? Is your isue resolved? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa
I have been working on other aspects of the project, and will post back here when the solution is tested and confirmed, thanks.