public void create(CreateRequest request) {
    call(
      new PostRequest(path("create"))
        .setParam("description", request.getDescription())
        .setParam("metricId", request.getMetricId())
        .setParam("metricKey", request.getMetricKey())
        .setParam("projectId", request.getProjectId())
        .setParam("projectKey", request.getProjectKey())
        .setParam("value", request.getValue())
        .setMediaType(MediaTypes.JSON)
      ).content();
  }
public void create ( CreateRequest request ) { call ( new PostRequest ( path ( "create" ) ) . setParam ( "description" , request . getDescription ( ) ) . setParam ( "metricId" , request . getMetricId ( ) ) . setParam ( "metricKey" , request . getMetricKey ( ) ) . setParam ( "projectId" , request . getProjectId ( ) ) . setParam ( "projectKey" , request . getProjectKey ( ) ) . setParam ( "value" , request . getValue ( ) ) . setMediaType ( MediaTypes . JSON ) ) . content ( ) ; }
This is part of the internal API.
This is a POST request.
@see <a href="https://next.sonarqube.com/sonarqube/web_api/api/custom_measures/create">Further information about this action online (including a response example)</a>
@since 5.2
@deprecated since 7.4