Python APIs jeckels  2014-10-02 13:55
Status: Closed
 
Hello,

1. We do have an API for this, but not a Python client-side binding at this time. This will handle inserting into all of the various tables, maintaining the FKs, etc. The R version is labkey.saveBatch(). The JavaScript version is LABKEY.Experiment.saveBatch(), as documented here: https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Experiment.html#.saveBatch. It would be reasonably straightforward to create a Python binding for this same underlying HTTP/JSON API.

2. Unfortunately, we don't have an API in any of our supported client languages that performs a copy-to-study operation. It would be possible to create the POST that the UI does when a user performs this operation, though we don't encourage this approach as it's subject to breaking in future versions.

We'd also be happy to discuss extending our client API support if you'd be interested in a proposal for this work.

Thanks,
Josh