GET method works fine and returns the data so the username and password are correct.
when I have already mentioned parameter the content type as JSON..
Thank you!
var client = new RestClient(“https://bmswave.myshopify.com/”);
client.Authenticator = new HttpBasicAuthenticator(“XXX”, “YYY”);
string resource = “/admin/api/2021-07/products.json”;
var requestres = new RestRequest(resource, Method.POST);
StringBuilder postData = new StringBuilder();
//Handle,Title,Body (HTML)
postData.Append(“{”);
postData.Append(“"Handle": 8375698BRD”);
postData.Append(“,”);
postData.Append(“"Title": ALEX 3/4 SLV PRINTED BLOUSE BLK/REDD-L”);
postData.Append(“}”);
string buildJson = postData.ToString();
byte data = Encoding.UTF8.GetBytes(buildJson);
var request = new RestSharp.RestRequest(“RESOURCE”, RestSharp.Method.POST) { RequestFormat = RestSharp.DataFormat.Json }
.AddJsonBody(data)
.AddUrlSegment(“status”, “open”)
.AddHeader(“header”, “Content-Type: application/json;charset=utf-8”);
Thanks for providing the x-request-id - I took a look in the logs and saw that you made your request to a “/RESOURCE” url, which is not a valid endpoint. Additionally, the parameters sent were a series of integers. I would recommend adding some logging to your application so you can see what exactly is being sent to Shopify from the app. Hope this helps!