5

Is it possible? I see no mention of a url_key in the Swagger docs.

I have a large database of product I need to import, and the names (which seem to determine the url) are not unique.

1 Answer 1

9

Although Swagger doesn't specify "url_key", you can add this attribute value by the following method:

{
  "product": {
    ...
    "customAttributes": [
      {
        "attributeCode": "url_key",
        "value": "<your_value>"
      }
    ]
  }
}

Note: Next time, you can use GET to know the product JSON structure first. Then any customized attributes can be created according to the JSON structure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.