1

Strapi how to update single product via api tutorial # 6

Strapi how to update single product via api tutorial # 6

In this tutorial we will learn how to update single product if you know id.

You need to send put request from your api client.

[sourcecode]http://localhost:1337/api/products/:id[/sourcecode]

Let suppose your product id is 2. Your response should look like this.

[sourcecode]http://localhost:1337/api/products/2[/sourcecode]

if your id is 30. Your response should look like this.

[sourcecode]http://localhost:1337/api/products/30[/sourcecode]

and so on..

put request update strapi

put request update strapi


Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 1 comments
Muhammad Shahzad - 11 months ago

Very interesting knowledge about API. Keep it up

Reply

Leave a Reply: