API Documentation

Cancel a custom tool build

POST/api/custom-tools/{name}/cancel-build

Request 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 equivalentbuild.version.cancel()
Parameters
namepathrequired

The custom tool name.

versionqueryoptional
HTTP Response Status Codes
Status codeDescription
200The version with cancellation requested.
401API key missing or invalid.
404The addressed resource does not exist, or is not visible to your tenant.
409The request conflicts with current resource state.
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/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}