Synchronizing data once user gets online involves both Insert and Update (Upsert) and I'm sending both kinds of records in a single request (array) and then server iterates through records to determine insert or update.
My question is whether to use POST or PUT?
Also how a response from the server (JSON) should like in it's body? the data sent is an array, for example
{
  "ids" : "15,16,17",
  "success" : true
}
Edit:
And what should be the response code, it has both create and update operations:
200 OK
201 Created
 
     
    