Palbase Commerce & Promotions · API
PUT
/commerce/collections/{collection_id}/products/{product_id}Add product to collection
Add product to collection
Called by your server, with the project's secret key.
Path
collection_idstring · requiredPath parameter collection_id.product_idstring · requiredPath parameter product_id.curl
curl -X PUT "https://<your-ref>.palbase.studio/commerce/collections/<collection_id>/products/<product_id>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200Add product to collection
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation AddCollectionProduct of commerce's contract.