Here we'll show an example of a parent item and a variant being sent. Once the items have been sent, we will promote the catalog as active. We then send a patch on the variant.
The sample of items:
Item parent
{
"id": "A0001",
"attributes": {
"title": "My item",
"description": "This is my item."
}
}
Next, create a catalog version. As this is the first catalog the version is 1, but you can list your catalogs.
Remember! Catalog API can handle only 2 catalogs at the same time. If this limit is reached, one inactive catalog must be deleted by using the API before creating a new one. Determining the inactive catalog is done by listing all catalogs API.
POST /catalogs?tenant=mycompany&environment=production