I'm currently developing an automated workflow using Python and ArcGIS Pro 3.5 to generate and publish a Voxel Scene Layer (.slpk) to our ArcGIS Enterprise Portal. The workflow runs every 10 minutes, and the data content is dynamic (radar-based voxel data). Our goal is to keep the service name fixed as radar, so that other downstream apps and dashboards depending on this service don’t break or require updates.
Here's what I've tried:
Update .lyrx file content (e.g., maxLabel, colorRangeMax)
Use arcpy.CreateVoxelSceneLayerContent_management() to generate a new .slpk
Attempt to overwrite the existing Portal item named radar
Because SharePackage() doesn’t support overwriting, and simply fails if the service name already exists—even after deleting the Portal item via gis.content.search().delete().
I simply want to automatically overwrite an existing Voxel Scene Layer every 10 minutes, with updated .slpk content, using Python. No change in URL or service name.
Is there any supported method to:
Overwrite a hosted Scene Layer (from .slpk) via Python or arcpy?
Delete the existing service cleanly (not just the Portal item) so SharePackage() can reuse the same name?
Or any alternative method (e.g., REST API, Service Definition workflows) that works with voxel .slpk?
ArcGIS Pro 3.5 (licensed)
arcpy 3.5
Python script running in scheduled job
ArcGIS Enterprise Portal (10.9.1)
Logged in via arcpy.SignInToPortal(...)
Thank you in advance