Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wellsb1

    (@wellsb1)

    That was supposed to say “When I PUT an updated to a PRODUCT…”

    Thread Starter wellsb1

    (@wellsb1)

    1,000,000 thanks Claudio. Worked great.

    Wells

    Thread Starter wellsb1

    (@wellsb1)

    Mike,

    Really appreciate the response. Unfortunately, I have been over seemingly all of the API docs (including you link) and just don’t understand.

    The /products/attributes api seems to handle what I will call “named” attributes that can be set on multiple products and use to configure product variants.

    I want to set a custom attribute. From what I can tell, this is the equivalent of selecting “Custom product attribute” in the attribute combo box in the product editor.

    For what it is worth, I have also previously tried adding my custom attribute as a named attribute in the control panel (same as in the API you referenced) and then re-adding the product via the API. No dice.

    I submit the JSON successfully but the attribute field that comes back is empty.

    Wells

    Thread Starter wellsb1

    (@wellsb1)

    I should also add that I have tried and tried and tried but have not gotten anything to work. Below is an example of what I have tried posting.

    {
      "product" : {
        "categories" : [ "14", "124", "125", "14", "124", "126", "18", "127", "20", "128" ],
        "sku" : "50384",
        "title" : "Oval Opal (.23ct) & 3 Diamond (.05ct) Pendant w/ chain",
        "description" : "Oval Opal and Round Diamond Pendant on 18\" Box Link Chain Gem .23cttw Diamond .05cttw",
        "short_description" : "Oval Opal (.23ct) & 3 Diamond (.05ct) Pendant w/ chain",
        "type" : "simple",
        "attributes" : [ {
          "name" : "Designer Number",
          "value" : "YBC272760003014",
          "slug" : "designer-number",
          "variation" : false
        } ]
        ]
      }
    }
Viewing 4 replies - 1 through 4 (of 4 total)