API Reference (v2)Procedures
Delete procedure
Permanently delete a procedure, removing all associated runs, phases, measurements, and attachments.
Access
| API Key | Access Level | Description |
|---|---|---|
| User | Full | Users can delete procedures |
| Station | Unauthorized | Stations cannot delete procedures |
Endpoint
DELETE
/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 delete.
Response Body
from tofupilot.v2 import TofuPilot
# Initialize the TofuPilot client
client = TofuPilot()
# Execute the operation
result = client.procedures.delete(
id="string"
)
# 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?
Update procedure PATCH
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.
Create procedure version POST
Create a new version for an existing test procedure. Versions let you track procedure changes over time and maintain a history of test configurations.