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 "Set a domain as primary" and "Transfer a domain" endpoints from docs

Kiran K1a24e7add32a
diff --git a/apps/docs/api-reference/endpoint/set-a-primary-domain.mdx b/apps/docs/api-reference/endpoint/set-a-primary-domain.mdx
deleted file mode 100644
index d5d75a95fd..0000000000
--- a/apps/docs/api-reference/endpoint/set-a-primary-domain.mdx
+++ /dev/null
@@ -1,4 +0,0 @@
----
-openapi: post /domains/{slug}/primary
-og:title: "Set a domain as primary for a workspace with the Dub.co API - API Reference"
----
diff --git a/apps/docs/api-reference/endpoint/transfer-a-domain.mdx b/apps/docs/api-reference/endpoint/transfer-a-domain.mdx
deleted file mode 100644
index 99e771553a..0000000000
--- a/apps/docs/api-reference/endpoint/transfer-a-domain.mdx
+++ /dev/null
@@ -1,4 +0,0 @@
----
-openapi: post /domains/{slug}/transfer
-og:title: "Transfer a domain to the another workspace with the Dub.co API - API Reference"
----
diff --git a/apps/docs/mint.json b/apps/docs/mint.json
index f4bfe43ff0..b5266eabe7 100644
--- a/apps/docs/mint.json
+++ b/apps/docs/mint.json
@@ -140,9 +140,7 @@
"api-reference/endpoint/create-a-domain",
"api-reference/endpoint/update-a-domain",
"api-reference/endpoint/delete-a-domain",
- "api-reference/endpoint/retrieve-a-list-of-domains",
- "api-reference/endpoint/set-a-primary-domain",
- "api-reference/endpoint/transfer-a-domain"
+ "api-reference/endpoint/retrieve-a-list-of-domains"
]
},
{
@@ -207,9 +205,7 @@
"sdks/typescript/domains/create",
"sdks/typescript/domains/update",
"sdks/typescript/domains/delete",
- "sdks/typescript/domains/list",
- "sdks/typescript/domains/set-primary",
- "sdks/typescript/domains/transfer"
+ "sdks/typescript/domains/list"
]
},
{
diff --git a/apps/docs/sdks/typescript/domains/set-primary.mdx b/apps/docs/sdks/typescript/domains/set-primary.mdx
deleted file mode 100644
index dc40895ff0..0000000000
--- a/apps/docs/sdks/typescript/domains/set-primary.mdx
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: "Set Primary"
-"og:title": "dub.domains.setPrimary - Set a domain as primary - TypeScript SDK"
-description: "Set a domain as primary for the authenticated workspace."
----
-
-import DomainResponse from "/snippets/domain-response.mdx";
-
-## Arguments
-
-<ParamField body="slug" type="string" required>
- Name of the domain to set as primary. Eg. `acme.com`.
-</ParamField>
-
-## Response
-
-<DomainResponse />
-
-<RequestExample>
-
-```ts
-await dub.domains.setPrimary("acme.com");
-```
-
-</RequestExample>
-
-<ResponseExample>
-
-```ts
-{
- id: "clvcep2sn87jh8nf808x00005",
- slug: "acme.com",
- verified: false,
- primary: true,
- archived: false,
- placeholder: "https://dub.co/help/article/what-is-dub",
- expiredUrl: "https://acme.com/expired",
- target: "https://acme.com/home",
- type: "redirect",
- clicks: 0,
-}
-```
-
-</ResponseExample>
diff --git a/apps/docs/sdks/typescript/domains/transfer.mdx b/apps/docs/sdks/typescript/domains/transfer.mdx
deleted file mode 100644
index dcc4715e8e..0000000000
--- a/apps/docs/sdks/typescript/domains/transfer.mdx
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: "Transfer"
-"og:title": "dub.domains.transfer - Transfer a domain - TypeScript SDK"
-description: "Transfer a domain to another workspace within the authenticated account."
----
-
-import DomainResponse from "/snippets/domain-response.mdx";
-
-## Arguments
-
-<ParamField body="slug" type="string">
- Name of the domain to transfer. Eg. `acme.com`.
-</ParamField>
-
-<ParamField body="newWorkspaceId" type="string">
- The ID of the new workspace to transfer the domain to.
-</ParamField>
-
-## Response
-
-<DomainResponse />
-
-<RequestExample>
-
-```ts
-await dub.domains.transfer("acme.com", {
- newWorkspaceId: "ws_clv3mw4qb00008tvuw86c53db",
-});
-```
-
-</RequestExample>
-
-<ResponseExample>
-
-```ts
-{
- id: "clvcep2sn87jh8nf808x00005",
- slug: "acme.com",
- verified: false,
- primary: true,
- archived: false,
- placeholder: "https://dub.co/help/article/what-is-dub",
- expiredUrl: "https://acme.com/expired",
- target: "https://acme.com/home",
- type: "redirect",
- clicks: 0,
-}
-```
-
-</ResponseExample>