public void updateKey(UpdateKeyRequest request) {
    call(
      new PostRequest(path("update_key"))
        .setParam("from", request.getFrom())
        .setParam("projectId", request.getProjectId())
        .setParam("to", request.getTo())
        .setMediaType(MediaTypes.JSON)
      ).content();
  }
public void updateKey ( UpdateKeyRequest request ) { call ( new PostRequest ( path ( "update_key" ) ) . setParam ( "from" , request . getFrom ( ) ) . setParam ( "projectId" , request . getProjectId ( ) ) . setParam ( "to" , request . getTo ( ) ) . 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/projects/update_key">Further information about this action online (including a response example)</a>
@since 6.1