I have a .Net Core Web API that is returning a 415 Unsupported Media Error when I try to post some data to it that includes some json. Here\'s part of what is returned in t
Try using [FromForm] instead of [FromBody]
public IActionResult Post([FromForm] PlayerPackage playerPackage)
FromBody -> If you binding from JSON
FromForm -> If you binding from Form parameters
NOTE 1:
You can also remove [FromBody] altogether and trial it then. Because you are expecting form-urlencoded should tell it to bind to object.