API Documentation
Setup
Submit Jobs
Finetuning
Job Management
File Management
Custom Tools
Overview
Python SDK Reference
End to End example
GET
List custom tools
GET
Get a custom tool
POST
Create a custom tool
PATCH
Update a custom tool
DELETE
Delete a custom tool
POST
Create a source upload
POST
Build a custom tool
GET
List build logs
POST
Cancel a custom tool build
POST
Run a custom tool
POST
Publish a custom tool version
GET
List custom tool versions
Pipelines
Cancel a custom tool build
POST
/api/custom-tools/{name}/cancel-buildRequest cancellation of an active build. Omit version when exactly one build is active, or specify a version such as v2. Continue polling until the build reaches a terminal status.
Python SDK equivalent
build.version.cancel()Parameters
namepathrequiredThe custom tool name.
versionqueryoptionalHTTP Response Status Codes
| Status code | Description |
|---|---|
| 200 | The version with cancellation requested. |
| 401 | API key missing or invalid. |
| 404 | The addressed resource does not exist, or is not visible to your tenant. |
| 409 | The request conflicts with current resource state. |
| 412 | A supplied request condition did not match the current resource. Fetch the resource again before retrying. |
| 422 | The 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/cancel-build"
5headers = {"x-api-key": api_key}
6
7resp = requests.post(url, headers=headers)
8print(resp.status_code, resp.json())Response
1{
2 "completedAt": "string",
3 "createdAt": "string",
4 "error": {
5 "code": "string",
6 "message": "string"
7 },
8 "origin": "string",
9 "sourceRevision": "string",
10 "startedAt": "string",
11 "status": "Queued",
12 "terminal": false,
13 "version": "v1"
14}