Post updated on 05/03 for more information:
Developing a content migration tool using C# console app, using HTTP CRUD operations to access/add/update Sitecore items . To create Media items used HTTP post method, with following References:
I am guessing I need to find right API resource (correct API method with respective parameters) to make the media items creation successful.
Addition info: I am able to create non-media items using same HTTP post method by passing values in API request body. Tried same approach with media items , getting below error
Getting NO HTTP resource error, I have checked and ensured the following folder is present in Sitecore CM: sitecore/media library/XXX
Error: {"Message":"No HTTP resource was found that matches the request URI 'https://xxxcore-content.yyyyy.com/sitecore/api/ssc/sitecore/media library/XXX/?name=TestMediaTwo'."}
Tried creating media items differently (will add more info soon) and got below error. The request entity's media type 'multipart/form-data' is not supported for this resource.
Another reference: https://www.anyaconsultancy.com/blog/Sitecore-Item-Web-API-CRUD-Operations/