The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Is it possible to set a product as deleted using the nopAPI for 4.0?

Posted: July 31, 2018 at 5:59 PM Quote #209663
Hello,

I'm using nopCommerce 4.0 with source.

I'm trying to call the nop API Put api/products with this JsonUrl:
/api/products/14511

and this JsonData:
{"product":{"Deleted":true}}


It returns with a Status OK.

The documentation does not show an example Put for products.

Thanks,
Tony
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 31, 2018 at 8:16 PM Quote #209667
The problem with this is that the JsonData needed a lower case "d":

[code]{"product":{"deleted":true}}/code]
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.