v1 ReferenceImports
Import create from file
Create a test run by importing data from a previously uploaded file. Supports CSV and other structured formats for batch test result ingestion.
POST
/v1/importAuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
upload_idstring
Format
uuidimporterstring
Value in
"OPENHTF"Response Body
from tofupilot.v1 import TofuPilotClient
client = TofuPilotClient()
result = client.create_import(
upload_id="f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
importer="OPENHTF"
)
print(result){
"id": "550e8400-e29b-41d4-a716-446655440000"
}{
"message": "Bad request",
"code": "BAD_REQUEST",
"issues": []
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?
API Keys
Create and manage API keys to authenticate test scripts uploading results to TofuPilot. Set permissions and rotate keys for security.
Create run POST
Create a new test run with procedure, unit, metadata, phases, measurements, and log attachments. Returns the created run with all associated data.