TofuPilotTofuPilot
v2 Reference (Preview)/Parts/Revisions

Delete part revision

Permanently delete a part revision.

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.

Length1 <= length <= 60
revision_numberstring

Revision number to delete.

Length1 <= length <= 60

Response Body

from tofupilot.v2 import TofuPilot

# Initialize the TofuPilot client
client = TofuPilot()

# Execute the operation
result = client.parts.revisions.delete(
    part_number="PCB-V2.0",
    revision_number="REV-A"
)

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

How is this guide?