Overview
This method is responsible for adding products to an existing collection in the WhatsApp Business catalog.
When adding or removing products from a collection, its ID is changed by WhatsApp. Use the returned ID for subsequent operations.
Attributes
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Required
IDs of the products to be added
Request Body
{
"collectionId": "658387616418640",
"productIds": ["6643149779134830"]
}
Response
200
true if successful, false if it failed
New collection ID after the change
{
"success": true,
"collectionId": "1798362193933497"
}
405
Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.
415
If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.