Skip to content

How to partially update a listing with PatchListingsItem method #3570

Answered by kevnhowe
henryvuong2 asked this question in Questions
Discussion options

You must be logged in to vote

Your patch value should be a generic object list. Here's an example of what works for me:

                ListingsApi listingsApi = new ListingsApi.Builder()
                    .SetLWAAuthorizationCredentials(lwaAuthorizationCredentials)
                    .Build();
                var patchOpType = PatchOperation.OpEnum.Replace;
                var productType = "ESSENTIAL_OIL";
                var patchPath = "/attributes/unit_count";
                var attributeValues = new
                {
                    marketplace_id = marketplaceId,
                    type = new { language_tag = "en_US", value = "Fl Oz" },
                    value = "3.38"
                };
            …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@henryvuong2
Comment options

Answer selected by henryvuong2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants