Portal Item
Creates a new portal item object with the specified type in the specified portal. Use this constructor if you wish to create a new a PortalItem to add to a portal.
Since
200.0.0
Parameters
the Portal the new portal item to be added
a type of PortalItemType
Creates a portal item object using the specified portal and item ID. The portal item ID can be determined from the URL of the item details web page or the ArcGIS Online map viewer and scene viewer web applications in your portal. The item details page has the following format https://www.arcgis.com/home/item.html?id=[itemId]. The map viewer has the format https://www.arcgis.com/home/webmap/viewer.html?webmap=[itemId] or https://www.arcgis.com/apps/mapviewer/index.html?webmap=[itemId] depending on whether you use the classic map viewer or the new map viewer. The scene viewer has the following format https://www.arcgis.com/home/webscene/viewer.html?webscene=[itemId]. In all cases, you can use the itemId as the ID to instantiate a portal item.
Since
200.0.0
See also
Creates a portal item from the specified portal item URL. Use this object to create a portal item from a URL. The supported URL formats are:
The REST Sharing API URL of the portal item (with or without the query parameter f=json). Example: https://www.arcgis.com/sharing/rest/content/items/c6a2c53ead68432586cc9ac9ec366055?f=json
The REST Sharing API URL of the portal item data. Example: https://www.arcgis.com/sharing/rest/content/items/c6a2c53ead68432586cc9ac9ec366055/data
The URL of the portal item details web page. Example: https://www.arcgis.com/home/item.html?id=c6a2c53ead68432586cc9ac9ec366055
The URL of a web map opened in the portal's map viewer web application (classic or new). Example: https://www.arcgis.com/home/webmap/viewer.html?webmap=8bf7167d20924cbf8e25e7b11c7c502c or https://www.arcgis.com/apps/mapviewer/index.html?webmap=8bf7167d20924cbf8e25e7b11c7c502c
The URL of a web scene opened in the portal's scene viewer web application. Example: https://www.arcgis.com/home/webscene/viewer.html?webscene=74ec7d6ca482442ba24f80b708aec67e
Since
200.0.0