title: Angular 7 http.put() with json body
body: <p>I am trying to consume a WebAPI resource with Angular 7 HttpClient.  The CURL for the HTTP PUT operation succeeded. </p>
  
  <pre><code>curl - X PUT--header 'Content-Type: application/json'--header 'Accept: application/json' - d '%27Reviewed%27'
  'https://my.organization/WebAPI/MyServices/Service1/consult/123/800088093313/reviewstatus'
  </code></pre>
  
  <p>I am using the following to do the same but it gave me Http 415 if I use Json.stringfy() or Http 404 if I don't.  Could you help?  Thanks.</p>
  
  <pre><code>const requestUrl = this.endpoint + '/consult/' + sta3n.toString() + '/' + consultSid.toString() + '/reviewstatus';
  const requestBody = JSON.Stringfy(status);
  // const requestBody = {status};
  return this._http.put(requestUrl, requestBody);
  </code></pre>
  
  <p>Here is the WebAPI endpoint declaration</p>
  
  <pre><code>[HttpPut]
  [Route("consult/{sta3n}/{consultSID}/reviewstatus")]
  [SwaggerResponse(HttpStatusCode.OK, Type = typeof(String))]
  [SwaggerResponse(HttpStatusCode.Unauthorized)]
  [SwaggerResponse(HttpStatusCode.NotFound)]
  [SwaggerResponse(HttpStatusCode.InternalServerError, Type = typeof(Exception))]
  public IHttpActionResult SetConsultReviewStatus([FromUri] short sta3n, [FromUri] long consultSID, [FromBody] string status) {
      ...
      ...
  }
  </code></pre>