Add a new product field
POST {{baseUrl}}/productFields
Adds a new product field. For more information, see the tutorial for adding a new custom field.
Request Body
{"name"=>"<string>", "field_type"=>"<string>", "options"=>["<object>", "<object>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"success":true,"data":{"id":32,"key":"397b0f545d134b479a5485041b33b0f0f3da2333","name":"Color","order_nr":13,"field_type":"enum","add_time":"2019-12-20 11:01:24","update_time":"2019-12-20 11:01:24","last_updated_by_user_id":10999910,"created_by_user_id":10999910,"active_flag":true,"edit_flag":true,"index_visible_flag":true,"details_visible_flag":true,"add_visible_flag":true,"important_flag":false,"bulk_edit_allowed":true,"searchable_flag":false,"filtering_allowed":true,"sortable_flag":true,"options":[{"id":9,"label":"red"},{"id":10,"label":"blue"},{"id":11,"label":"lilac"}],"mandatory_flag":false}}