Skip to main content

Replace Attribute Value Synonyms

PUT 

/api/v2/attributes/:attribute_id/value-synonyms

Replace the attribute's whole synonym list (an empty list removes them all). Each value must be one of the attribute's option values (matched ignoring case and spacing); synonym is at most 191 characters. A synonym spelled like another option value of the same attribute is rejected with 422, because an option value always wins when text is read. The same synonym twice with different values is rejected too. A synonym equal to its own value is dropped.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Requires products.update. Scope: products:write.

Request​

Responses​

OK

Response Headers
    Content-Type