TofuPilotTofuPilot
v1 Reference/Runs

Update run

Update a test run with new attachments. The upload must be initialized and completed before calling this endpoint.

Access

API KeyAccess LevelDescription
UserFullUsers can update any run of their organization
StationLimitedStations can update runs for procedures to which they are currently linked

Endpoint

PUT/v1/runs
AuthorizationBearer <token>

API key for authentication. Use format: Bearer YOUR_API_KEY

In: header

idstring

Unique identifier of the run to update.

Formatuuid
attachments?array<string>

Array of upload IDs to attach to the run.

Response Body

from tofupilot.v1 import TofuPilotClient

client = TofuPilotClient()
result = client.update_runs(
    id="550e8400-e29b-41d4-a716-446655440000"
)

print(result)
{
  "id": "550e8400-e29b-41d4-a716-446655440000"
}
{
  "code": "NOT_FOUND",
  "message": "Operator with email {operated_by} does not exist. Create the user first in the app.; Procedure with ID {id} does not exist. Create the procedure first in the app.",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

How is this guide?