Code | Description |
---|---|
401 | Unauthorized. Include a WWW-Authenticate header field containing a challenge applicable to the requested resource. |
403 | Forbidden. The request was a valid request, but the server is refusing to respond to it. 403 error semantically means "unauthorized", i.e. the user does not have the necessary permissions for the resource. |
404 | Not Found. The requested resource could not be found. |
422 | Unprocessable Entity. The request was well-formed but was unable to be followed due to semantic errors. |
500 | Internal Server Error. An unexpected condition was encountered. |
request: { "product_class": { "name": "Shoe Colour", "class_type": "variation", "include_media": true, "include_price": true, "include_category": true, "include_inventory": false, "include_dimension": false, "lower_class_id": 12, "attribute_definition_ids": [2, 12, 25] } } response: { "id": 10, "name": "Shoe Colour", "class_type": "variation", "include_media": true, "include_price": true, "include_category": true, "include_inventory": false, "include_dimension": false, "created_at": "2017-09-08T16:08:59.144+10:00", "updated_at": "2017-09-08T16:08:59.144+10:00", "lower_class_id": 12 }
Param name | Description |
---|---|
product_class required |
Validations:
|
product_class[name] required |
Name of the product class Validations:
|
product_class[class_type] optional , nil allowed |
Validations:
|
product_class[include_media] optional , nil allowed |
Allow images to be included in this class, not supported in NPC. Validations:
|
product_class[include_price] optional , nil allowed |
Allow prices to be included in this class, not supported in NPC. Validations:
|
product_class[include_category] optional , nil allowed |
Allow categories to be included in this class, not supported in NPC. Validations:
|
product_class[include_inventory] optional , nil allowed |
Allow inventories to be included in this class, not supported in NPC. Validations:
|
product_class[include_dimension] optional , nil allowed |
Allow dimensions to be included in this class, not supported in NPC. Validations:
|
product_class[lower_class_id] optional , nil allowed |
Only applies to class_type variation. It sets the next level product class. Validations:
|
product_class[lower_class_name] optional , nil allowed |
Only applies to class_type variation. It sets the next level product class. Validations:
|
product_class[attribute_definition_ids] optional , nil allowed |
List of Attribute Definition IDs to link to this product class Validations:
|
product_class[attribute_definition_codes] optional , nil allowed |
List of Attribute Definition codes to link to this product class Validations:
|
product_class[attribute_definition_mode] optional , nil allowed |
Update mode for Attribute Definition. Default is reset Validations:
|