code: def _copy_script_migrated(self, filename, id_=-1,
                                file_type=SCRIPT_FILE_TYPE):
          
          basefname = os.path.basename(filename)
  
          resource = open(filename, "rb")
          headers = {"DESTINATION": "1", "OBJECT_ID": str(id_), "FILE_TYPE":
                     file_type, "FILE_NAME": basefname}
          response = self.connection["jss"].session.post(
              url="%s/%s" % (self.connection["jss"].base_url, "dbfileupload"),
              data=resource, headers=headers)
          return response
docs: Upload a script to a migrated JSS's database.
  
          On a "migrated" JSS, scripts are POSTed to the JSS. Pass an id
          if you wish to associate the script with an existing Script
          object, otherwise, it will create a new Script object.
  
          Args:
              filename: Path to script file.
              id_: Int ID of Script object to associate this file with.
                  Default is -1, which creates a new Script.