i want to apply SUGAR.App.api.call('put') example in my sugar crm js controller
I want to do update operation
I have 'create' code already
app.api.call('create', app.api.buildURL('module'), record, {
success: function(data) {
//code
this.id = data.id,
this.description = data.description,
self.fetchData();
}
});
how to do it for 'put' example