Im using the OSDK to upload media to a ontology SDK
I have been using the python OSDK where you first upload the media to foundry, get a media reference object and I can then pass that to the function that will use the media reference as input to create the object with the media reference property
when I use the function in workshop it works fine where I can upload the file and it stores it to the backing dataset and can use the media upload widget to trigger my function that creates the object
I can also use the user token with the API and it works fine in uploading the file
https://www.palantir.com/docs/foundry/api/v2/ontologies-v2-resources/media-reference-properties/upload-media-content/
but when I use the python OSDK I get the error “TemporaryMediaUploadInsufficientPermissions”
client.ontology.media.upload_media(…) errorName: TemporaryMediaUploadInsufficientPermissions
Its the same user token I used with OSDK.
any suggestion on where is this permission and how to set it up ?