API Documentation
Overview
Python SDK Reference
End to End example
List custom tools
Get a custom tool
Create a custom tool
Update a custom tool
Delete a custom tool
Create a source upload
Build a custom tool
List build logs
Cancel a custom tool build
Run a custom tool
Publish a custom tool version
List custom tool versions
Upload Files
/api/upload/{filename}The PUT API endpoint /upload/{filename} allows users to upload files to their account to use as inputs for job submissions. Files are uploaded to your account's root folder by default. You can specify a folder to upload to using the optional "folder" parameter. After uploading, you can use the filename as input into jobs, like "input.pdb" or "myFolder/input.pdb".
Optional Parameters:
folder
(string)
Upload the file to a specific folder. The file will be accessible as "folder/filename" in your account.
HTTP Response Status Codes
| Status code | Description |
|---|---|
| 200 | File uploaded successfully |
| 400 | Bad request |
| 500 | Internal server error |
Upload a file to your account's root folder.
1import requests
2
3api_key = "***************"
4headers = {'x-api-key': api_key}
5base_url = "https://app.tamarind.bio/api/"
6
7local_filepath = "/path/to/your/file1.txt"
8uploaded_filename = "file1.txt"
9response = requests.put(f"{base_url}upload/{uploaded_filename}", headers=headers, data=open(local_filepath, 'rb'))
10print(response.status_code)
11# you can now use "file1.txt" as an input for your jobs