API Reference (v2)PartsRevisions
Delete part revision
Permanently delete a part revision by its part number and revision number. This action removes the revision and all associated data and cannot be undone.
DELETE
/v2/parts/{part_number}/revisions/{revision_number}AuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Path Parameters
part_numberstring
Part number that the revision belongs to.
revision_numberstring
Revision number to delete.
Response Body
from tofupilot.v2 import TofuPilot
# Initialize the TofuPilot client
client = TofuPilot()
# Execute the operation
result = client.parts.revisions.delete(
part_number="string",
revision_number="string"
)
# Handle response
print(result){
"id": "550e8400-e29b-41d4-a716-446655440000"
}{
"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 part revision PATCH
Update a part revision's number or image. Identifies the revision by part number and revision number in the URL.
Create batch POST
Create a new batch without any units attached. Batch numbers are matched case-insensitively (e.g., "BATCH-001" and "batch-001" are considered the same).