code: def _create_part(self, action, data, **kwargs):
          
          # suppress_kevents should be in the data (not the query_params)
          if 'suppress_kevents' in kwargs:
              data['suppress_kevents'] = kwargs.pop('suppress_kevents')
  
          # prepare url query parameters
          query_params = kwargs
          query_params['select_action'] = action
  
          response = self._request('POST', self._build_url('parts'),
                                   params=query_params,  # {"select_action": action},
                                   data=data)
  
          if response.status_code != requests.codes.created:
              raise APIError("Could not create part, {}: {}".format(str(response), response.content))
  
          return Part(response.json()['results'][0], client=self)
docs: Create a part internal core function.