The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update docs
Steven Tey7e1a7c9a0725
diff --git a/apps/docs/api-reference/endpoint/bulk-update-links.mdx b/apps/docs/api-reference/endpoint/bulk-update-links.mdxindex b7f12c524e..2049f636d3 100644--- a/apps/docs/api-reference/endpoint/bulk-update-links.mdx+++ b/apps/docs/api-reference/endpoint/bulk-update-links.mdx@@ -3,47 +3,14 @@ openapi: patch /links/bulkog:title: "Bulk update links with the Dub.co API - API Reference"----<Warning>- Bulk link update does not support the following features: [Link- cloaking](https://dub.co/help/article/link-cloaking), [Custom social media- cards](https://dub.co/help/article/custom-social-media-cards)-</Warning>+This endpoint lets you update up to 100 links **with the same data**.-<RequestExample>-```bash cURL-curl --request PATCH \- --url https://api.dub.co/links/bulk \- --header 'Authorization: Bearer {YOUR_TOKEN}' \- --header 'Content-Type: application/json' \- --data '- {- linkIds: ["clvtf4l4i0001wlr3c64kh2nk", "clvtf4l4i0001wlr3c64kh2nk"],- data: {- "domain": "newdomain.com",- "tagIds": ["1wlr3c64kh2nkclvtf4l4i000"],- }- }- ...- '-```-```javascript JavaScript-const options = {- method: 'PATCH',- headers: {Authorization: 'Bearer {YOUR_TOKEN}', 'Content-Type': 'application/json'},- body: JSON.stringify({- linkIds: ["clvtf4l4i0001wlr3c64kh2nk", "clvtf4l4i0001wlr3c64kh2nk"],- data: {- "domain": "newdomain.com",- "tagIds": ["1wlr3c64kh2nkclvtf4l4i000"],- }- })-};+Some potential use cases:-fetch('https://api.dub.co/links/bulk', options)-.then(response => response.json())-.then(response => console.log(response))-.catch(err => console.error(err));+- Tagging multiple links at once+- Setting the same expiration date for multiple links+- Updating UTM parameters for multiple links-```-</RequestExample>-```+<Warning>+ Caveat: You cannot update the domain or key of a link with this endpoint.+</Warning>diff --git a/apps/web/scripts/bulk-update-links.ts b/apps/web/scripts/update-public-stats.tssimilarity index 100%rename from apps/web/scripts/bulk-update-links.tsrename to apps/web/scripts/update-public-stats.ts