Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Add products to collection

Deprecated: Use the Collections V2 API. Adds one or more products to a collection. Validates that products exist and are not deleted before association.

PUT/api/v1/{team_slug}/{app_slug}/collections/{collection_id}/productsdeprecated
Authorization
AuthorizationBearer token · headerrequired

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

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

collection_idstringrequired

ID of collection

Request body
requiredapplication/json

Product IDs to add

product_idsstring[]required
Responses
200

Collection updated successfully

datastringrequired
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 (e.g. bad UUID, validation error)

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
422

Invalid request and not parsable by backend

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

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