code: def moveThreads(self, location, thread_ids):
          
          thread_ids = require_list(thread_ids)
  
          if location == ThreadLocation.PENDING:
              location = ThreadLocation.OTHER
  
          if location == ThreadLocation.ARCHIVED:
              data_archive = dict()
              data_unpin = dict()
              for thread_id in thread_ids:
                  data_archive["ids[{}]".format(thread_id)] = "true"
                  data_unpin["ids[{}]".format(thread_id)] = "false"
              r_archive = self._post(self.req_url.ARCHIVED_STATUS, data_archive)
              r_unpin = self._post(self.req_url.PINNED_STATUS, data_unpin)
              return r_archive.ok and r_unpin.ok
          else:
              data = dict()
              for i, thread_id in enumerate(thread_ids):
                  data["{}[{}]".format(location.name.lower(), i)] = thread_id
              r = self._post(self.req_url.MOVE_THREAD, data)
              return r.ok
docs: Moves threads to specifed location
  
          :param location: models.ThreadLocation: INBOX, PENDING, ARCHIVED or OTHER
          :param thread_ids: Thread IDs to move. See :ref:`intro_threads`
          :return: Whether the request was successful
          :raises: FBchatException if request failed