Skip to content

PUT on productclasses #341

Description

@JulienPalard

I'm trying to update productclasses attributes via the admin API, my first test was to GET and PUT a document just to check if it rounds-trip, but it won't. I then tried to patch the 'attributes' attribute without changing it, like:

        product_class = session.get("url of a product class").json()
        response = session.patch(
            product_class["url"], json={"attributes": product_class["attributes"]}
        )
        print(response.json())

but it gives:

{'attributes': [{'product_class': ['This field is required.']}, {'product_class': ['This field is required.']}, {'product_class': ['This field is required.']}]}

which feels broken?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions