Create a material
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.
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.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/materials" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "material": { "id": "string", "labId": "string", "name": "string", "code": "string", "valuePerGram": "string", "description": "string", "iconKey": "string", "isActive": true, "sortOrder": 0, "createdAt": "string", "updatedAt": "string" }}Empty
Empty
Empty
Empty