I used a file = gis.content.add() example to add a EXB.zip to AGOL.
The script worked, but I needed to Publish the EXB App.
I am only getting a Draft now, not a Published EXB App.
I cannot work out why, any suggestions would be appreciated.
I cannot do Save or Publish??
The code is:
### Data
layers=r"C:\EXB\v3.zip"
### XEB.zip to AGOL
file = gis.content.add(
item_properties={"type": "Web Experience", "title": "v3",
"description": "v3 Layers", "tags": "v3 Layers",
},
data=layers,
)
When I add
file = WebExperience.publish()
I get an error:
file = WebExperience.publish()
AttributeError: type object 'WebExperience' has no attribute 'publish'