Skip to main content

Bulk resource attribute values by resource lookup key

POST 

/:resourceType/:lookupKey/:lookupValue/attributes

The bulk resource attribute endpoint sets/ deletes resource attributes for a single resource identified by the lookup key. The attribute is identified via the payload by providing either id or name. If both are provided, id will be used to identify the attribute. Below is a summary of all the possible fields in the payload.

Fields

NameRequired
idyes, if name not provided
nameyes, if id not specified
classyes, if id not specified
typeyes
valueno, if omitted the attribute value will be deleted for the resource (set to default)

A successful response contains data about each attribute changes: whether the attribute was created/ updated for that resource, in which case the action in the response will be put, or delete if the value of the attribute for the particular resource is being deleted. After it is deleted, the attribute value for the specific resource will inherit the value from the parent resource(s).

In case of an issue, the data will contain a message explaining the reason, for ex. when an attribute is not found, or the value provided does not match the attribute type, etc.

Request

Path Parameters

    resourceType stringrequired

    Resource type. Possible values are products, categories, users, usergroups

    lookupKey stringrequired

    Lookup key. Use different lookup keys depending on the resource type

    lookupValue stringrequired

    The value of the key (an id, sourceId, sku, etc.)

Query Parameters

    source string

    Optional. Used in combination with lookup key sourceId

Body

array

  • Array [

  • class string
    name string
    type string
    value string
  • ]

Responses

Bulk product attribute values by product id - 200 / Bulk product attribute values by product source id - 200 / Bulk user attribute values by user id and attribute name - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • server

    string

  • x-request-id

    string

Schema

    data

    object[]

  • Array [

  • action string
    error string
    id number
    key string
    lookupKey string
    message string
    success boolean

    value

    object

    anyOf

    number

  • ]

  • messages string[]
    total number
Loading...