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

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
    Via
    alt-svc
    content-length
    date
    return-format
    server
    x-request-id