@staticmethod
    def _prepare_params(operations_list):
        operations = []
        for operation in operations_list:
            operations.append({
                'method': HTTP_METHOD_ACTION_MATCHING.get(operation.get('action', 'PUT')),
                'path': "/".join(operation['entity_params']),
                'body': '{}'.format(json.dumps(operation.get('data')))
            })

        return {
            'operations': operations
        }
Prepares data to be sent to the API
dataset/ETHPy150Open charlesthk/python-mailchimp/mailchimp3/entities/batches.py/Batches._prepare_params