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.

remove `workspaceId` from SDK examples

Steven Teyd13c28bdd38b
diff --git a/apps/docs/api-reference/endpoint/bulk-create-links.mdx b/apps/docs/api-reference/endpoint/bulk-create-links.mdx
index ae9c1f23ff..32b9ac48c0 100644
--- a/apps/docs/api-reference/endpoint/bulk-create-links.mdx
+++ b/apps/docs/api-reference/endpoint/bulk-create-links.mdx
@@ -12,7 +12,7 @@ og:title: 'Bulk create links with the Dub.co API - API Reference'
<RequestExample>
```bash cURL
curl --request POST \
- --url https://api.dub.co/links/bulk?workspaceId={WORKSPACE_ID} \
+ --url https://api.dub.co/links/bulk \
--header 'Authorization: Bearer {YOUR_TOKEN}' \
--header 'Content-Type: application/json' \
--data '[
@@ -44,7 +44,7 @@ const options = {
])
};
-fetch('https://api.dub.co/links/bulk?workspaceId={WORKSPACE_ID}', options)
+fetch('https://api.dub.co/links/bulk', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
diff --git a/apps/docs/snippets/sdk-install-ts.mdx b/apps/docs/snippets/sdk-install-ts.mdx
index 5d56a74ad0..619f04af83 100644
--- a/apps/docs/snippets/sdk-install-ts.mdx
+++ b/apps/docs/snippets/sdk-install-ts.mdx
@@ -42,7 +42,6 @@ import { Dub } from "dub";
export const dub = new Dub({
token: process.env.DUB_API_KEY, // optional, defaults to DUB_API_KEY env variable
- workspaceId: "ws_clugls3...",
});
```