Uploads a new image on a product. If an image with the same file name already exists, the image will still be uploaded but with a new unique name.
The image is included in the body of the request as binary data.
using System.Text;
using System.Text.Json;
using System.Net.Http;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Basic [USER-CREDENTIALS-BASE64-ENCODED]");
client.DefaultRequestHeaders.Add("X-ApiKey", "{MGMT_API_KEY}");
var response = await client.POSTAsync("https://mgmtapi.geins.io/API/Product/{productId}/Image/{imageName}", null);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);