Forum Discussion
Anonymous
1 year agoNot applicable
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 expe...
- 1 year ago
You used GET. This needs to be a POST call.
spencer_sa
1 year agoImpactful 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.