What is the API I can use to get the writeback or materialized dataset RID of an Object Type?
The official Get Object Type endpoint unfortunately doesn’t return that. Reverse engineering the front-end I see endpoint /objects-writeback/api/writeback/getDatasetsForObjectType/{object_type_rid}, but I’m not sure if that’s the best one?
/objects-writeback/api/writeback/getDatasetsForObjectType/{object_type_rid} is the correct endpoint to use. Unfortunately, I don’t think we have a documented API in https://www.palantir.com/docs/foundry/api for this yet.
For reference I’m adding here that it’s request POST /objects-writeback/api/writeback/getDatasetsForObjectType/{object_type_rid} with payload {pageSize: int}
There is also batch version with POST /objects-writeback/api/writeback/batchGetDatasetsForObjectType with payload {objectTypes: [objectTypeRids], pageSize: int}