|
1427 | 1427 | "\n",
|
1428 | 1428 | "To create new items on your GIS, use the [`add()`](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis._impl._content_manager.Folder.add) method on a [`Folder`](/python/api-reference/arcgis.gis.toc.html#folder) instance. You can get an individual _folder_ using the [`Folders.get()`](/python/api-reference/arcgis.gis.toc.html#arcgis.gis._impl._content_manager.Folders.get) method.\n",
|
1429 | 1429 | "\n",
|
1430 |
| - "The `add()` method accepts a dictionary containing the properties of the item to be created. The optional `file`, `text`, `url`, and `data_url` parameters accept input to add the actual content. \n", |
| 1430 | + "The `add()` method accepts a dictionary or [`ItemProperties`](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#itemproperties) object containing the properties of the item to be created. The optional `file`, `text`, `url`, and `data_url` parameters accept input to add the actual content. \n", |
1431 | 1431 | "\n",
|
1432 |
| - "All content you add this way is added to the authenticated user's dolswe. Let us connect to our Enterprise instance, add a csv file as an item and then publish a feature layer from it.\n", |
| 1432 | + "All content you add this way is added to the authenticated user's folder. Let us connect to our Enterprise instance, add a csv file as an item and then publish a feature layer from it.\n", |
1433 | 1433 | "\n",
|
1434 | 1434 | "For example, set up a path to the data:\n",
|
1435 | 1435 | "`data_path = os.path.join(r\"<your_drive>:\\\\\", \"path\", \"to\", \"data\")`"
|
|
1494 | 1494 | "cell_type": "markdown",
|
1495 | 1495 | "metadata": {},
|
1496 | 1496 | "source": [
|
1497 |
| - "The `add()` method returns an object of type `arcgis.gis.Item` representing the added item. In Jupyter notebook environment, you can visualize it by querying the item" |
| 1497 | + "The calling `result()` on the `add()` method returns an object of type `arcgis.gis.Item` representing the added item. In Jupyter notebook environment, you can visualize it by querying the item" |
1498 | 1498 | ]
|
1499 | 1499 | },
|
1500 | 1500 | {
|
|
1539 | 1539 | "cell_type": "markdown",
|
1540 | 1540 | "metadata": {},
|
1541 | 1541 | "source": [
|
1542 |
| - "**Note**: You can specify most properties of an item as a dictionary to the `item_properties` parameter. Refer to the [API ref doc](https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.ContentManager.add) of this method for a definitive list. You could also specify an empty dictionary to this parameter, the downside is search cannot index these items efficiently if it does not have sufficient metadata information, hence that is not a good programming practice." |
| 1542 | + "**Note**: You can specify most properties of an item as a dictionary or [`ItemProperties`](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#itemproperties) object to the `item_properties` parameter. Refer to the [API ref doc](https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.ContentManager.add) of this method for a definitive list. You could also specify an empty dictionary to this parameter, the downside is search cannot index these items efficiently if it does not have sufficient metadata information, hence that is not a good programming practice." |
1543 | 1543 | ]
|
1544 | 1544 | },
|
1545 | 1545 | {
|
|
0 commit comments