Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Add Products To Collection

Adds products to a specified collection.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Products permission scope.

POST

https://www.wixapis.com/stores/v1/collections/{id}/productIds

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

Collection ID.

Body Params

NAME
TYPE
DESCRIPTION
productIds

Array<string>

IDs of the products to add to the collection.

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/stores/v1/collections/1044e7e4-37d1-0705-c5b3-623baae212fd/productIds' \
3 --data-binary '{
4 "productIds": [
5 "a60fef92-ee29-070f-a7ed-9bbc3cc1c2f4",
6 "d9cd1d2f-8318-486b-a6f3-aa0c4e81ccd2"
7 ]
8 }' \
9 -H 'Content-Type: application/json' \
10 -H 'Authorization: <AUTH>'

Response

json

1
2{}