Esri / Esri/arcgis-python-api

bulk update

Open
#2,327 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
2.2k
Forks
1.2k
Avg merge
2h 40m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
Currently, administrators need to manually update items one by one when organization-wide changes occur. For example, when an organization's terms of use change, or when standardizing titles/descriptions across content types, there's no efficient way to bulk update these text fields across multiple items. This becomes especially time-consuming for organizations with hundreds or thousands of items.
python# Current approach requires iterating through items individually
items = gis.content.search(query="*", max_items=1000)
for item in items:
item.update({"licenseInfo": "New Terms of Use 2024"})
# This is slow and inefficient for large collections
Describe the solution you'd like
Enhance the ContentManager.bulk_update() function to support:

Updating specific fields (title, description, terms of use/licenseInfo) across multiple items
Filtering by item type (Feature Service, Web Map, Experience Builder, StoryMap, etc.)
Option to update all items or only selected types

Proposed implementation:
python# Update all items with new terms of use
gis.content.bulk_update(
update_fields={"licenseInfo": "Updated Terms of Use 2024"},
item_types=None # None = all types
)

# Update only specific item types
gis.content.bulk_update(
update_fields={
"description": "Updated organizational description",
"licenseInfo": "New Terms 2024"
},
item_types=["Web Map", "Feature Service", "StoryMap"]
)

# Update with a search query
gis.content.bulk_update(
update_fields={"title": lambda t: f"[2024] {t}"}, # Prefix existing titles
search_query="owner:admin_user",
item_types=["Web Map"]
)
Describe alternatives you've considered

Using the current bulk_update() with property dictionaries - but this requires building the complete property dict for each item
Writing custom scripts to iterate through items - functional but slow and doesn't leverage potential batch API operations
Using ArcGIS Online Assistant - works but requires manual intervention and doesn't scale well

Additional context
This enhancement would significantly improve administrative workflows for:

Compliance updates (terms of use, privacy policies)
Organizational rebranding (updating descriptions/titles)
Content standardization initiatives
Metadata management at scale

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.