Publish API end point of functions to external systems

Hi All - Have to expose two API endpoint ( one function to share the data and another to edit the object data ) to external application which is not ins foundry environment.

How to share the entire endpoint url so that external system can call and access the functions which are tested and published in AIP logic.

Please throw some light on how to form the urls fr these functions and share to call from external system. Thanks in advance.

Hey!

How to share the entire endpoint url so that external system can call and access the functions which are tested and published in AIP logic.

I’m not completely sure what you mean here ^

To call functions published in your ontology from outside Foundry, you’ll need to authenticate first. Getting started • API Reference • Palantir

Then, if your function is read-only, you can expose it through the API as a query and hit:

https://<hostname>/api/v2/ontologies/{ontology}/queries/{queryApiName}/execute

Execute Query • API Reference • Palantir

If your function makes ontology edits, you’ll need to access it via an ontology action and hit

https://<hostname>/api/v2/ontologies/{ontology}/actions/{action}/apply

Apply Action • API Reference • Palantir

1 Like

Yeah.. Yo’u’ve got me.

you means https:///api/v2/ontologies/ is common/static url that can be used/shared all the times and rest of the url will be changed based on the operation right? Please confirm on my understanding. Thanks

perfect. documentation helped to understand. Thanks alot.

1 Like

Apologies! The < and > symbols caused hostname to disappear after posting :smiley:

Its ok. I understood.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.