Generic Products Resource Behavior

Creating a New Product

In some scenarios, additional product resource updates are required in addition to what is specified in the POST request while creating a new product.

This includes automatically adding the default service options and services to the product service option list and product service list, respectively.

This behavior is controlled by the boolean header includeDefault property, which can be specified on the product’s POST operation while creating a new product.

  • If the property is set to true, then the operation adds all the default and active service options and services in the product service option list and product service list respectively.

  • If this property is set to false or left unspecified, then the operation creates only the service options and services specified in the POST request.

If the service or service option has already been specified in the POST request and includeDefault is also set to 'true', only the service options and services that are part of the payload are added to the product.