palantir-foundrypalantir-foundry-api

Is there a way for foundry function-backed actions to return a value when called via the API?


Based on the API documentation here, I know I can make an HTTP call to Foundry to apply an action: https://www.palantir.com/docs/foundry/api/ontology-resources/actions/apply-action/. I also know that action can be function-backed: https://chapter.palantirfoundry.com/docs/foundry/action-types/function-actions-getting-started/.

My question is, can you have the function used to define an action return some value (say the ID to a created object), and have that value be returned in the API call response body?

I noticed that the return type of the ApplyActionResponse is just an empty JSON object. Does this mean that nothing can be returned from the endpoint?


Solution

  • Short Answer: Not today

    Possible workarounds: