title: Pass a primitive data type in request body in the Angular HTTP PUT
body: <p>I have a service method and I need to pass a UUID through a String property to the service using an HTTP PUT request through request payload (i.e., body).</p>
  
  <p>The signature of the Java Spring Boot API controller method is </p>
  
  <pre><code>@PutMapping("group/{groupId}/updateFile")
      public String deleteAgencyFile(@PathVariable("groupId") UUID reportId,@RequestBody UUID fileId) {
  
      // Internal Operations - TODO
  
      return 'SUCCESS';
  }
  </code></pre>
  
  <p>Angular HTTP PUT code:</p>
  
  <pre><code>updateGroupFile() {
      const groupId: string = 'b9ddab47-56a2-11e9-8882-484d7ee28bcd';
      const fileId: string = 'c0822353-56a2-11e9-8882-484d7ee28bcd';
  
      const filePath = `http://localhost:3000/api/group/${groupId}/updateFile`
  
      return this.http.put&lt;SimpleResponse&gt;(filePath, fileId);
  }
  </code></pre>
  
  <p>Once I'm subscribing to the Angular method I'm getting the error:</p>
  
  <pre><code>{
     "timestamp":"2019-04-04T06:30:32.098+0000",
     "status":400,
     "error":"Bad Request",
     "message":"JSON parse error: Unrecognized token 'c0822353': was expecting 'null', 'true', 'false' or NaN; nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'c0822353': was expecting 'null', 'true', 'false' or NaN\n at [Source: (PushbackInputStream); line: 1, column: 10]",
     "path":"/api/group/b9ddab47-56a2-11e9-8882-484d7ee28bcd/updateFile"
  }
  </code></pre>
  
  <p>I tried the same in POSTMAN, it's working but in the Angular application it fails.</p>