Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update projectSlug to workspaceId in bulk-create-links endpoint

Kiran K9c05e868eeab
diff --git a/apps/docs/api-reference/endpoint/bulk-create-links.mdx b/apps/docs/api-reference/endpoint/bulk-create-links.mdx
index 8e84732322..7939241dd1 100644
--- a/apps/docs/api-reference/endpoint/bulk-create-links.mdx
+++ b/apps/docs/api-reference/endpoint/bulk-create-links.mdx
@@ -1,7 +1,7 @@
---
openapi: post /links/bulk
og:title: 'Bulk create links with the Dub.co API - API Reference'
-description: Bulk create up to 100 links for the authenticated project.
+description: Bulk create up to 100 links for the authenticated workspace.
---
<Warning>
@@ -13,7 +13,7 @@ description: Bulk create up to 100 links for the authenticated project.
<RequestExample>
```bash cURL
curl --request POST \
- --url https://api.dub.co/links/bulk?projectSlug={YOUR_PROJECT_SLUG} \
+ --url https://api.dub.co/links/bulk?workspaceId={WORKSPACE_ID} \
--header 'Authorization: Bearer {YOUR_TOKEN}' \
--header 'Content-Type: application/json' \
--data '[
@@ -45,7 +45,7 @@ const options = {
])
};
-fetch('https://api.dub.co/projects/steven/links/bulk', options)
+fetch('https://api.dub.co/links/bulk?workspaceId={WORKSPACE_ID}', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));