Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Bulk add products to collections

Deprecated: Use the Collections V2 API. Adds multiple products to multiple collections in a single request. Accepts up to 50 collection-product relationships. Each collection can only appear once per request to preserve product order. Returns lists of successful and failed additions.

POST/api/v1/{team_slug}/{app_slug}/collections/products/bulkdeprecated
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
team_slugstringrequired

Team slug

app_slugstringrequired

App slug

Request body
requiredapplication/json

Product and collection relationships to create

itemsinternal_pkg_webserver_v1.BulkCollectionProductRelationshipItem[]required
max items 50
Show properties
Array of internal_pkg_webserver_v1.BulkCollectionProductRelationshipItem
collection_idstringrequired
product_idsstring[] | nullrequired
min items 1
Responses
200

Products added to collections successfully

datainternal_pkg_webserver_v1.BulkAddProductsToCollectionsResponserequired
Show properties
failedinternal_pkg_webserver_v1.BulkCollectionProductFailedOp[] | null
Show properties
Array of internal_pkg_webserver_v1.BulkCollectionProductFailedOp
collection_idstring
product_idstring
reasonstring
successfulinternal_pkg_webserver_v1.BulkCollectionProductRelationshipItem[] | null
Show properties
Array of internal_pkg_webserver_v1.BulkCollectionProductRelationshipItem
collection_idstringrequired
product_idsstring[] | nullrequired
min items 1
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.enad.io/api/v1/string/string/collections/products/bulk' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "collection_id": "string",
      "product_ids": [
        "string"
      ]
    }
  ]
}'
Response
{
  "data": {
    "failed": [
      {
        "collection_id": "string",
        "product_id": "string",
        "reason": "string"
      }
    ],
    "successful": [
      {
        "collection_id": "string",
        "product_ids": [
          "string"
        ]
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}