Link: Add bulk create, update and delete endpoints to the v1 API
Dub exposes POST, PATCH and DELETE on /links/bulk with up to 100 links per request (https://dub.co/docs/concepts/links/bulk-operations). We have bulk create and bulk actions in the app (app/api/links/bulk/route.ts) but they use the session, and the public v1 API creates one link per call. A team migrating thousands of links or tagging a campaign from a script hits the rate limit quickly. First scope: bulk create and bulk delete under links:write, up to 100 per request, with a per-item result so one bad row does not fail the batch.
Comments 0
No comments yet.
Sign in to comment