What is the difference between CreateWebLayerSDDraft and getWebLayerSharingDraft? I am trying to update a map on the portal with a map on the internal network. GetWebLayerSharingDraft pulls from the portal? Do I need to call getWebLayerSharingDraft to pull data like tags, description, and credits to pass into CreateWebLayerSDDraft? I want all the metadata to persist on the portal document except the map itself.
I am running ArcGIS Pro.
The arcpy.sharing module (containing getWebLayerSharingDraft) was introduced at ArcGIS Pro 2.2 to provide a better experience when sharing web layers over the previously existing function CreateWebLayerSDDraft. The original function is provided only for backward compatibility.