private Request createPutRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource) {
    applyDirectives(Request.Type.PUT, body, uriInfo, resource);
    return new PutRequest(headers, body, uriInfo, resource);
  }
Creates a PUT request. It will apply any eligible directives supplied in the URI
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestFactory.java