Create Product Variant
POST/suppliers/products/:productIdentifier/variants
It is a simple and straightforward way to add new product variant linked to a specified main product based on productIdentifier
paramater.
If the given main product is a simple product
, by adding a variant product it is automatically upgraded to a complex product
.
Request
Responses
- 201
- 403
- 404
- 422
Created product variant successfully.
Authorization error
Resource not found it means that the provided product or variant identifier or any of the path parameters to amend is either not yours or present in the database.
Validation error