Skip to main content

Bulk Cluster Products by sourceId

POST 

/clusters/:lookupKey/:lookupValue/products/bulk

The bulk endpoints offer an efficient way of importing/updating large amounts of cluster products with just a single API call. The same lookup key is used for the products as for the cluster. When using the bulk id endpoint, the products are identified by Propeller product id. If a product with such id doesn't already exist, it will be created. If it does exist, the product will be updated.

Product Bulk endpoints support bulk change of product attributes for multiple products as well. To learn more about Attributes, go here.

A single product's attributes can be modified as explained in Bulk resource attribute values by resource lookup key, but if it's needed to modify attributes for multiple products, this endpoint should be used.

Fields

NameRequired
products (array of product objects)yes
sourceIdyes
sourceyes
languageyes
namesno
skuno (recommended)
unitno
Default is 1
statusno
Default is A
priceDisplayno
Default is default
descriptionsno
shortDescriptionsno
taxCodeno
Default is H
supplierno (recommended)
supplierCodeno (recommended)
oemCodeno
eanCodeno
minimumQuantityno
Default is 1
packageDescriptionsno
notesno
attributes

Read more about attributes
no

For more details on attributes field, read this.

Directives

NameDescriptionFields
skipIfNotEmptyOn update, skip updating fields of an existing product that are not emptyarray of field names
e.g. names, descriptions, packageDescriptions etc.
skipMoveOnUpdateOn update, skip moving an existing product in the parent category providedempty array
mergeTranslationsOnUpdateOn update, delete all translation for a product that are not provided in the payloadempty array

What are directives?

Request

Path Parameters

    lookupKey stringrequired

    Lookup key. Read more about cluster lookup keys

    lookupValue stringrequired

    The value of the key (id or sourceId)

Body

    directives

    object[]

  • Array [

  • fields string[]
    operation string
  • ]

  • products

    object[]

  • Array [

  • attributes

    object[]

  • Array [

  • class string
    name string
    type string

    value

    object[]

  • Array [

  • language string
    value string
  • ]

  • ]

  • descriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • eanCode string
    language string
    manufacturer string
    minimumQuantity number

    names

    object[]

  • Array [

  • language string
    value string
  • ]

  • notes

    object[]

  • Array [

  • language string
    value string
  • ]

  • oemCode string
    package string

    packageDescriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • shortDescriptions

    object[]

  • Array [

  • language string
    value string
  • ]

  • shortName string
    sku string
    source string
    sourceId string
    status string
    supplier string
    supplierCode string
    taxCode string
    unit number
  • ]

Responses

Bulk Cluster Products by sourceId - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • x-request-id

    string

Schema

    data

    object[]

  • Array [

  • action string
    id number
    key string
    lookupKey string
    success boolean
  • ]

  • messages string[]
    total number
Loading...