Skip to content

Value in PatchOPeration #516

Answered by ayotade
ayotade asked this question in Q&A
Discussion options

You must be logged in to vote

Please how do I specify the value in the patch request below.

patchService.listingsItemPatchRequest.patches.Add(new PatchOperation() { op = Op.replace,path = "/attributes/fulfillment_availability" ,value=new List() { new FulfillmentAvailability"DEFAULT",4) } } );

I get this error message: " The field 'fulfillment_channel_code' for the attribute 'fulfillment_availability' does not have enough values. The required minimum is '1' value(s)"

Thank you

I figured it out. Value accepts an anonymous object and not a type object so I modify it as shown below

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ayotade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant