Skip to content

Deprecate /bulk_items - #987

Open
jonhealy1 wants to merge 8 commits into
stac-utils:mainfrom
jonhealy1:deprecate-bulk-items
Open

jonhealy1 wants to merge 8 commits into
stac-utils:mainfrom
jonhealy1:deprecate-bulk-items

Conversation

@jonhealy1

@jonhealy1 jonhealy1 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Related Issue(s):

Description:

  • Deprecated BulkTransactionExtension (POST /collections/{collection_id}/bulk_items). Use TransactionExtension instead, which supports ItemCollection payloads on POST /collections/{collection_id}/items.

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
  • Changes are added to the CHANGELOG.

@jonhealy1
jonhealy1 marked this pull request as ready for review September 30, 2026 11:02
@vincentsarago

Copy link
Copy Markdown
Member

does the TransactionExtension allow do to upsert? is the idea to use PUT to create or update an item?

I'm also not found of the response from POST /collections/collection_id/items which doesn't indicate clearly if all or some items were not created (when multi Items where passed as input).

As mentioned by stac-api-extensions/transaction#16 (review) the TransactionExtension already takes some freedom from the OGC specs by allowing FeatureCollection (Items) instead of single Feature (Item). This might lead to issues when the OGC Features Part 4 is released, meaning the our transactionExtension won't be compliant.

I know I said I was fine with the change in stac-api-extensions/transaction#16 but I'm having second thoughts 🙈

IMO, one possible path we could follow is:

  • stop overloading the /items endpoint and remove ItemCollection as a possible input
  • keep /bulk_items and update the spec (as originally planned)

If we remove the bulk_items extension and in the future decide that our transaction extension should follow the OGC Feature Part 4 we will be stuck.

@jonhealy1

Copy link
Copy Markdown
Collaborator Author

I opened this issue in the transaction extension repo and @ahmed-hassan19 is going to make a pr I think to try to clear some of this up.

I liked the idea of getting rid of one of the ways to post bulk items. I think not overloading the /items endpoint would be nice.

We are just deprecating here I guess and we could undeprecate later. Or we could just leave this pr open for a while and try to figure out what works best.

Maybe we keep both routes and wait to see what happens with OGC Features Part 4?

This branch has not been deployed

No deployments
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.

2 participants