TofuPilotTofuPilot
API Reference (v2)Procedures

Update procedure

Update a test procedure's name or configuration. The procedure is identified by its unique ID in the URL path. Only provided fields are modified.

Access

API KeyAccess LevelDescription
UserFullUsers can update procedures
StationUnauthorizedStations cannot update procedures

Endpoint

PATCH/v2/procedures/{id}
AuthorizationBearer <token>

API key for authentication. Use format: Bearer YOUR_API_KEY

In: header

Path Parameters

idstring

Unique identifier of the procedure to update.

namestring

New name for the procedure.

Length1 <= length <= 60

Response Body

from tofupilot.v2 import TofuPilot

# Initialize the TofuPilot client
client = TofuPilot()

# Execute the operation
result = client.procedures.update(
    id="string",
    name="Updated Battery Test Procedure"
)

# Handle response
print(result)
{
  "id": "550e8400-e29b-41d4-a716-446655440000"
}
{
  "message": "Bad request",
  "code": "BAD_REQUEST",
  "issues": []
}
{
  "message": "Unauthorized",
  "code": "UNAUTHORIZED",
  "issues": []
}
{
  "message": "Not found",
  "code": "NOT_FOUND",
  "issues": []
}
{
  "message": "Internal server error",
  "code": "INTERNAL_SERVER_ERROR",
  "issues": []
}

How is this guide?