Forum Discussion
Unknown Error on Fabric Rest API getDefinition call on Semantic Model
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 expected for the Semantic Model.
Code in notebook below
You used GET. This needs to be a POST call.
5 Replies
- spencer_saImpactful Individual
As an aside, if you're doing this in a Fabric notebook, you can use semantic-link-labs (aka sempy) with the FabricRESTClient class to do away with the whole 'Get Token' and request crafting malarky.
https://learn.microsoft.com/en-us/python/api/semantic-link-sempy/sempy.fabric.fabricrestclient?view=semantic-link-python
https://fabric.guru/using-fabricrestclient-to-make-fabric-rest-api-calls
If this helps, please consider Accepting as a solution to help other people find it more easily. - lbendlinSuper User
You used GET. This needs to be a POST call.
- AnonymousNot applicable
thank you! this helped me greatly
- AnonymousNot applicable
Hi Anonymous,
Thank you for reaching out in Microsoft Community Forum.
Thank you spencer_sa, lbendlin for the helpful response.
As suggested by Spencer_sa,Ibendlin, I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.
Please continue using Microsoft community forum.
Regards,
Pavan. - AnonymousNot applicable
yes changed and resolved thank you