Skip to content

Replace catalog bulk update with partial/replace APIs#26

Merged
gmethvin merged 1 commit into
mainfrom
generic-catalog-bulk-update
Jul 9, 2026
Merged

Replace catalog bulk update with partial/replace APIs#26
gmethvin merged 1 commit into
mainfrom
generic-catalog-bulk-update

Conversation

@gmethvin

@gmethvin gmethvin commented Jul 9, 2026

Copy link
Copy Markdown
Member

Replace the bulk catalog update API with two methods that match Iterable's bulk endpoint and the existing single-item PATCH/PUT methods:

  • partialUpdateCatalogItems merges uploaded fields (replaceUploadedFieldsOnly: true)
  • replaceCatalogItems replaces each item with only the provided fields (replaceUploadedFieldsOnly: false)

Both accept { catalogName, documents } where documents is a map of item ID to arbitrary JSON fields. The client posts directly to POST /api/catalogs/{catalogName}/items with no items array, dataFields flattening, or required name field.

Breaking changes:

  • Removed updateCatalogItems, UpdateCatalogItemParamsSchema, CatalogItemSchema, and CatalogItem
  • Removed UpdateCatalogItemParams (singular) naming in favor of PartialUpdateCatalogItemsParams / ReplaceCatalogItemsParams

@gmethvin gmethvin force-pushed the generic-catalog-bulk-update branch from 705d5f6 to 9daeed9 Compare July 9, 2026 02:08
@gmethvin gmethvin force-pushed the generic-catalog-bulk-update branch from 9daeed9 to ed8461c Compare July 9, 2026 02:24
@gmethvin gmethvin merged commit 284aef2 into main Jul 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant