API Documentation

Validate a tool config

POST/api/custom-tools/validate-config

Check a config.json against the contract a build applies, before spending a build on it.

Creates and changes nothing, and the tool need not exist. A config that fails is a successful check: the response is 200 with valid: false and the reason a build would give. It does not look at the rest of the source, so a build can still be refused for a missing Dockerfile or run.sh.

Parameters
configbodystringrequired

The full text of the tool's config.json.

HTTP Response Status Codes
Status codeDescription
200Successful Response
401API key missing or invalid.
422The request was malformed or failed validation; see errors for the offending fields.
1import requests
2
3api_key = "insert-api-key-here"
4url = "https://app.tamarind.bio/api/custom-tools/validate-config"
5headers = {"x-api-key": api_key}
6
7payload = {
8    "config": "string"
9}
10resp = requests.post(url, headers=headers, json=payload)
11print(resp.status_code, resp.json())
Response
1{
2  "errors": [
3    {
4      "code": "string",
5      "message": "string"
6    }
7  ],
8  "valid": false,
9  "warnings": [
10    {
11      "code": "string",
12      "message": "string"
13    }
14  ]
15}