Unsupported Media Type error when posting to Web API August 22, 2023 by Tarik You should set the media type when creating StringContent new StringContent(json, Encoding.UTF32, "application/json");