Add product to family - celdotro/marketplace GitHub Wiki

About

  • Add a product to a product family

Class

celmarket\Products\ProductsUpdate

Method

addProductToFamily

Parameters

  • familyId = family's ID
  • model = product's model

Response

An object with the following attributes

  • success = 1 -> operation was successfully executed

Example - PHP

Example - JSON

{
  "request": {
    "familyId": 1,
    "model": "X"
  },
  
  "response": {
    "success": 1
  }
}
⚠️ **GitHub.com Fallback** ⚠️