diff --git a/parsons/hustle/hustle.py b/parsons/hustle/hustle.py index c5fd03803..44328bc1a 100644 --- a/parsons/hustle/hustle.py +++ b/parsons/hustle/hustle.py @@ -69,7 +69,9 @@ def _request(self, endpoint, req_type='GET', args=None, payload=None, raise_on_e headers = {'Authorization': f'Bearer {self.auth_token}'} - parameters = {'limit': PAGE_LIMIT} + parameters = {} + if req_type == 'GET': + parameters = {'limit': PAGE_LIMIT} if args: parameters.update(args) @@ -393,7 +395,7 @@ def create_leads(self, table, group_id=None): table.map_columns(LEAD_COLUMN_MAP) arg_list = ['first_name', 'last_name', 'email', 'phone_number', 'follow_up', - 'tag_id', 'group_id'] + 'tag_ids', 'group_id'] created_leads = []