The following is the ajax code used by the website to change the two feilds ability_bpm and endurance_bpm
function editBatch_Ajax(id, batch_data){
    $.ajax({
      url: '/batches/'+ id,
      type: 'put',
      context: 'this',
      dataType: 'json',
      data: {
        batch: batch_data,
        id: id
      },
      success: function(msg){ 
        $('#' + id + ' .' + Object.keys(batch_data)[0]).text(batch_data[Object.keys(batch_data)[0]]);
      },
      error: function(jqXHR, textStatus, errorThrown) {}
    });
}
sends a PUT request from a Ajax call. Now I want to do the same thing from an android application. here
    data: {
 batch: batch_data,
 id: id
 },
will be something like
data : { 
     batch: {
     ability_bpm: 40
     },
     id: 0
    }
The website that I webserver is running at http://www.rudimentor.me/
I am a beginer to android. So far I have gotten to display the data available at the server in a listview I need to have this to change the values on the server. I have also tried to send request from a rest client in a browser but cannot figure it out
 
     
     
     
    