Administration/Materials

Updates the fields the body names, merged over the stored material: a key left out keeps its value and null clears it; translations (en/es/de/fr) merges per language. name is not writable here (use PUT) and, like any other unknown key, is ignored; an empty unit array is treated as not sent. Has the PUT's side effects — renames the raw-material product category, publishes the image, re-syncs the category into the style types. Responds with the record as GET /:id returns it. 404 material_not_found for an unknown id.

patch/api/admin/materials/{id}

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/{id}
  • Auth
    none declared

Path parameters

idstring required

Request body

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

Response

Default Response

Changes