这是indexloc提供的服务,不要输入任何密码
Skip to content

bulk update #2327

@Renwar1

Description

@Renwar1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions