API Documentation

Create a source upload

POST/api/custom-tools/{name}/uploads

Create a temporary upload for a source archive.

Upload the file to uploadUrl using uploadMethod and every value in uploadHeaders, then use uploadId to build a version.

Python SDK equivalenttool.build(source_dir) (the SDK requests and uploads the archive for you)
Parameters
namepathrequired

The custom tool name.

HTTP Response Status Codes
Status codeDescription
201Successful Response
401API key missing or invalid.
404The addressed resource does not exist, or is not visible to your tenant.
412A supplied request condition did not match the current resource. Fetch the resource again before retrying.
422The request was malformed or failed validation; see `errors` for the offending fields.
1import requests
2
3api_key = "***************"
4url = "https://app.tamarind.bio/api/custom-tools/your-name/uploads"
5headers = {"x-api-key": api_key}
6
7resp = requests.post(url, headers=headers)
8print(resp.status_code, resp.json())
Response
1{
2  "expiresAt": "string",
3  "maxBytes": 0,
4  "uploadHeaders": {
5    "<key>": "string"
6  },
7  "uploadId": "string",
8  "uploadMethod": "PUT",
9  "uploadUrl": "string"
10}