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 Key | Access Level | Description |
|---|---|---|
| User | Full | Users can update procedures |
| Station | Unauthorized | Stations 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.
Length
1 <= length <= 60Response 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?