Updating api format call : now data is a dict which key is field_name and value is a dict