I am trying to append features from one feature layer to another using the Python API using Jupyter notebooks. I log into ArcGIS Online using gis = GIS(username="username", password="password"). I find both layers and create a feature set for the records i wish to append. I then try to execute the append and get an error which seems to be due to permissions. Error below. If anyone has could offer assistance, that would be greatly appreciated.
The error appears to indicate that the script does not have your login credentials when you are trying to run it. I would suggest trying to login using the format below:
password = getpass()
my_gis = GIS("https://www.arcgis.com","AGOLUsername",password)
Are all the layers you are using public layers?
Here's the source I used for this code: