Delete a material
Soft-delete a material by setting it to inactive. The material record is preserved for historical reference.
Soft-delete a material by setting it to inactive. The material record is preserved for historical reference.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
id*string
Material ID
Response Body
application/json
curl -X DELETE "https://example.com/materials/550e8400-e29b-41d4-a716-446655440000"{ "material": { "id": "string", "labId": "string", "name": "string", "code": "string", "valuePerGram": "string", "description": "string", "iconKey": "string", "isActive": true, "sortOrder": 0, "createdAt": "string", "updatedAt": "string" }, "message": "string"}Empty
Empty
Empty
Empty
Create a material POST
Create a new material in the lab's catalog. Materials carry cost information such as value per gram; markup is configured per product on the product-material association.
Delete material icon DELETE
Remove the icon associated with a material from R2 storage and clear the iconKey reference.