Administration/Materials

Creates a material. Only name is required; with no translations sent, an en entry is stored from name and description. Also creates its raw-material product category, publishes the image, and syncs the category into the style types. Answers 201 with the record as GET /:id returns it.

post/api/admin/materials

Request

  • Base URL
    https://api.retraced.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.retraced.com/api/admin/materials
  • Auth
    none declared

Request body

namestring required
descriptionstring nullable
imageFileIdstring nullable
isRecyclednumber nullable
isSyntheticnumber nullable
category'NATURAL_FIBER' | 'SYNTHETIC_FIBER' | 'LEATHER' | 'NATURAL_MATERIAL' | 'SYNTHETIC_MATERIAL' | 'METAL'
quantityUnitsstring[]
weightUnitsstring[]

Response

Default Response

Changes