Administration/Product Category Fields

Replaces a product category field: fieldName, fieldType and idx are required, and fieldOptions left out (or null) clears the stored options. standardFieldName is only taken when the field has none yet — a stored one is never overwritten. The category cannot be changed. Responds with the field as stored. 404 product_category_field_not_found for an unknown id (legacy: not_found); 409 duplicated_field_option when an option repeats. Answers { data, metadata }; legacy answered the bare record.

put/api/admin/product-category-fields/{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/product-category-fields/{id}
  • Auth
    none declared

Path parameters

idstring required

Request body

fieldNamestring required
fieldTypestring required
idxnumber required
standardFieldName'FABRIC_WEIGHT' | 'FABRIC_WIDTH' nullable
fieldOptionsstring[] nullable

Response

Default Response

Changes