TofuPilotTofuPilot
v1 ReferenceRuns

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 have full access to runs
StationLimitedStations can only access runs for procedures they are linked to

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"
}
{
  "message": "Not found",
  "code": "NOT_FOUND",
  "issues": []
}
{
  "message": "Internal server error",
  "code": "INTERNAL_SERVER_ERROR",
  "issues": []
}

How is this guide?