Product QAsOntology SDK

Ontology SDK

What is the difference between tokens from the Developer Console and those from third-party applications in the context of configuring a service user for group administration?

Developer Console applications are created as restricted applications, so their tokens are limited to the projects and operations added to the application's restrictions. That is why a restricted application's token is not suitable for group administration. Create the application in Developer Console and then set it to unrestricted; see Create an unrestricted application. The Unrestricted Project access setting that Control Panel offers when enabling an application for an Organization does not apply here. It only governs applications authorized on behalf of a user through the authorization code grant.

Timestamp: April 13, 2024

Can the Upload File endpoint in Foundry's API be used to upload a file from a local machine to a Foundry dataset?

Yes, the Upload File endpoint is for uploading a file to an existing Foundry dataset from a local machine.

Timestamp: March 21, 2024

Why might a user receive a 403 PermissionDenied error when trying to write rows to stream-data-proxy using a backend service/client credentials OSDK client, and how can this be resolved?

A restricted Developer Console application can only call the operations added to its restrictions, and it cannot call underlying service endpoints such as stream-data-proxy. Standalone OAuth clients, which could call those endpoints directly, can no longer be created. Instead, set the application to unrestricted and request the api:* scope for the namespace you need; see Create an unrestricted application and Scope prefixes.

Timestamp: March 21, 2024

Can an OSDK be pinned to Python 3.9 version to avoid conflicts with other packages that require Python 3.9?

No, the Python OSDK requires a Python version >=3.10 and <3.15. The other packages need to be upgraded to the supported Python versions.

Timestamp: July 2, 2026

Is there a C# SDK available to work with an API, and if not, what is the alternative solution?

No, there is no C# SDK currently available. The alternative solution is to export the OpenAPI and use an open-source generator like OpenAPI Generator ↗ to create a C# client. Additionally, Microsoft's OpenAPI.NET SDK ↗ can be used for the C# generator along with OAuth libraries for .NET ↗ for managing OAuth.

Timestamp: March 2, 2024

How can one use the Typescript SDK to perform a contains search on a string property?

The current Typescript SDK does not support arbitrary substring matching; it can only match on whole terms and prefixes.

Timestamp: March 6, 2024

Why does the /loadObjects API call not return properties using the inherited shared property API name?

The /loadObjects API call does not return properties using the inherited shared property API name because interfaces are treated as views. When you are looking at the concrete object type, you have the local properties, and when you are looking at it as an interface, you have the shared/interface properties. This design means that properties are contextually based on whether they are viewed as a part of the local concrete object or as part of an interface.

Timestamp: March 27, 2024

How can custom headers be added to each call in the Python OSDK?

Custom headers can be added to each call in the Python OSDK by updating the session headers of the FoundryClient instance as follows:

client = FoundryClient(auth=auth, hostname="<https://YOUR_ENROLLMENT.palantirfoundry.com>")
client._session._session.headers = client._session._session.headers.update({
"YOUR_API_KEY_HEADER": "key_goes_here"
})

MyObject = client.ontology.objects.MyObject
print(MyObject.take(1))

Timestamp: April 15, 2024

How can I resolve the Authorization error invalid_request Client authentication failed issue when trying to log into an OSDK application?

Ensure that the application is enabled for the right Organizations. The OSDK application needs to be enabled for the following Organizations:

  • The Organization the application belongs to after creation. If the creator has admin permissions on the Organization, this is enabled automatically.
  • Any other Organizations with users that intend to use the application. This must be done manually, and guest membership do not appl.

Timestamp: December 2, 2024