I’ve created a function to convert html to markdown within a typescript v2 function, and I want to utilise this within a python transform to convert some html to MD before storing it in a dataset. The documentation seems to suggest this should be possible by accessing the function api directly using a request to /api/ontology/functions/, but I keep getting a 404. Not sure if I’m doing something wrong or if it’s an egress policy that needs changing.
To call a function through the API you must first give it an API name. Documentation on how to do that can be found here.
Then, to actually make the API request you can follow this documentation. Note that the path is /api/v2/ontologies/{ontology}/queries/{queryApiName}/execute.