def ModifyCluster(r, **kwargs):
    """
    Modifies cluster parameters.

    More details for parameters can be found in the RAPI documentation.

    @rtype: int
    @return: job id
    """
    return r.request('put', '/2/modify', content=kwargs)
