DELETE
5 min read
Delete Part
DELETE
/api/v1/parts/{id}
Remove a part from your inventory
Delete Part
Permanently delete a part from your inventory.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id |
integer | The part ID |
Example Request
curl -X DELETE "https://hydra.marketdragon.ph/api/v1/parts/45" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Example Response
{
"message": "Part deleted successfully."
}
Error Responses
403 Forbidden
{
"message": "You do not have access to this part."
}
404 Not Found
{
"message": "No query results for model [Part] 999"
}
Back to Parts
Was this helpful?