Association of characteristics to a product
Use
Road:/api/product_features
Protected:true
Attributes
id:integer
feature_id:integer (PUT, DELETE), object (POST)
product_id:integer (PUT, DELETE), object (POST)
Roads
Returns the list of associations of characteristics to products
Returns associations of product characteristics found from a Character ID {id}
Returns associations of product characteristics found from a Product ID {id}
Put | /store |
Required | feature_id, product_id |
Creates an association between a product and a character using the body of the request
Post | /features/{id} |
Required | product_id as an object with current and new properties. Ex:
- "product_id": {
- "current": 25,
- "new": 21
- }
|
Updates the association between a product and a character based on the product character whose ID is {id} and replaces the product whose ID is {id}product_id.currentby the one whose ID isproduct_id.new
Post | /products/{id} |
Required | feature_id as an object with current and new properties. Ex:
- "feature_id": {
- "current": 10,
- "new": 30
- }
|
Updates the association between a product and a character from the product whose ID is {id} and replaces the product character whose ID is {id}feature_id.currentby the one whose ID isfeature_id.new
Delete | /features/{id} |
Optional | feature: {feature_id} |
Removes character associations with a product when the product character ID is {id}. If specified, replace the character ID produced of each of these associations with {feature_id}.
Delete | /products/{id} |
Optional | product: {product_id} |
Removes character associations with a product when the product ID is {id}. If specified, replace the product ID of each of these associations with {product_id}.
Related Articles
Characteristics products
Use Road:/api/features Protected:true Attributes id:integer name:translation Roads Get / Returns the list of product characteristics Get /{id} Returns the details of product characteristics whose ID is {id} Put /store Required id, name Creates a ...
Associations of Product Character Values
Use Road:/api/feature_associations Protected:true Attributes id:integer feature_id:integer (PUT, DELETE), object (POST) value_id:integer (PUT, DELETE), object (POST) Roads Get / Returns the list of characteristic associations products and values Get ...
Values of product characteristics
Use Road:/api/feature_values Protected:true Attributes id:integer name:translation Roads Get / Returns the list of product characteristic values Get /{id} Returns details of the product characteristic value of ID {id} Put /store Required id, name ...
Model characteristics
Use Road:/api/specifications Protected:true Attributes id:integer group_id:integer name:translation url_rewrite:translation Roads Get / Return the list of specifications Get /{id} Returns the details of the specification corresponding to the ID {id} ...
Rules of compatibility
Use Road:/api/rules Protected:true Roads Get / Returns the list of existing compatibility rules Get /{id} Returns the details of the rule whose ID is {id} Get /specification/{id} Returns the list of rules containing model carcatetristics whose ID is ...