Forum Discussion
Anonymous
1 year agoNot applicable
Fabric RestAPi GetDefinition on Semantic model returns Unknown Error
Hi - running into an issue trying to get the defintion of a Semantic Model in a notebook. Note that the parameters are correct as if i drop the /getDefinition from the end I get results back as expe...
- 1 year ago
Hope this will resolve the error
nilendraFabric
Super User
1 year agoHello Anonymous
The error occurs because the Fabric REST API’s `getDefinition` endpoint for semantic models requires a POST request instead of GET.
try this
add_Response = requests.post(addURL, headers=header)
if this is helpful please accept the answer
Anonymous
1 year agoNot applicable
nilendraFabric - thanks for that - now I feel really stupid for not spotting it was a POST rather than a GET method 🙂
- nilendraFabric1 year ago
Super User
Hope this will resolve the error
- v-aatheeque1 year ago
Community Support
Hi Anonymous ,
If our response addressed by the nilendraFabric for your query, please mark it as Accept Answer and click Yes if you found it helpful.
Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!