Creates or updates products in bulk.
products.create_products(ProductCreateProductsParams**kwargs) -> ProductCreateProductsResponse
POST/api/v2/public/products
Creates or updates products in bulk.
ParametersExpand Collapse
products: Optional[Iterable[Product]]The products to create or update.
products: Optional[Iterable[Product]]
The products to create or update.
deprecation_date: Optional[Union[str, datetime, null]]
Date the product is deprecated.
formatdate-time
expiration_min_range: Optional[int]
Minimum days remaining before expiration triggers an alert.
formatint32
promo_stores_not_allowed: Optional[Sequence[str]]
Stores where the product is excluded from promotion.
ReturnsExpand Collapse
Creates or updates products in bulk.
import os
from colleqtive_sdk import Colleqtive
client = Colleqtive(
bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"), # This is the default and can be omitted
)
response = client.products.create_products()
print(response.success){
"success": true,
"data": "data",
"message": "message"
}Returns Examples
{
"success": true,
"data": "data",
"message": "message"
}