You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi-with-code-samples.yaml
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -2725,7 +2725,7 @@ paths:
2725
2725
properties:
2726
2726
"id":
2727
2727
type: "string"
2728
-
description: "The unique identifier of the customer in Dub."
2728
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
2729
2729
"externalId":
2730
2730
type: "string"
2731
2731
description: "Unique identifier for the customer in the client's app."
@@ -2887,7 +2887,7 @@ paths:
2887
2887
properties:
2888
2888
"id":
2889
2889
type: "string"
2890
-
description: "The unique identifier of the customer in Dub."
2890
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
2891
2891
"externalId":
2892
2892
type: "string"
2893
2893
description: "Unique identifier for the customer in the client's app."
@@ -3019,10 +3019,10 @@ paths:
3019
3019
parameters:
3020
3020
- in: "path"
3021
3021
name: "id"
3022
-
description: "The unique identifier of the customer in Dub."
3022
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3023
3023
schema:
3024
3024
type: "string"
3025
-
description: "The unique identifier of the customer in Dub."
3025
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3026
3026
required: true
3027
3027
- in: "query"
3028
3028
name: "includeExpandedFields"
@@ -3040,7 +3040,7 @@ paths:
3040
3040
properties:
3041
3041
"id":
3042
3042
type: "string"
3043
-
description: "The unique identifier of the customer in Dub."
3043
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3044
3044
"externalId":
3045
3045
type: "string"
3046
3046
description: "Unique identifier for the customer in the client's app."
@@ -3171,10 +3171,10 @@ paths:
3171
3171
parameters:
3172
3172
- in: "path"
3173
3173
name: "id"
3174
-
description: "The unique identifier of the customer in Dub."
3174
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3175
3175
schema:
3176
3176
type: "string"
3177
-
description: "The unique identifier of the customer in Dub."
3177
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3178
3178
required: true
3179
3179
- in: "query"
3180
3180
name: "includeExpandedFields"
@@ -3215,7 +3215,7 @@ paths:
3215
3215
properties:
3216
3216
"id":
3217
3217
type: "string"
3218
-
description: "The unique identifier of the customer in Dub."
3218
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3219
3219
"externalId":
3220
3220
type: "string"
3221
3221
description: "Unique identifier for the customer in the client's app."
@@ -3346,10 +3346,10 @@ paths:
3346
3346
parameters:
3347
3347
- in: "path"
3348
3348
name: "id"
3349
-
description: "The unique identifier of the customer in Dub."
3349
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3350
3350
schema:
3351
3351
type: "string"
3352
-
description: "The unique identifier of the customer in Dub."
3352
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3353
3353
required: true
3354
3354
responses:
3355
3355
"200":
@@ -3361,7 +3361,7 @@ paths:
3361
3361
properties:
3362
3362
"id":
3363
3363
type: "string"
3364
-
description: "The unique identifier of the customer in Dub."
3364
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
3365
3365
required:
3366
3366
- "id"
3367
3367
"400": {"$ref": "#/components/responses/400"}
@@ -4141,7 +4141,7 @@ paths:
4141
4141
operationId: "upsertPartnerLink"
4142
4142
x-speakeasy-name-override: "upsertLink"
4143
4143
summary: "Upsert a link for a partner"
4144
-
x-codeSamples: [{"lang": "typescript", "label": "upsertPartnerLink", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.partners.upsertLink();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"programId\\\":\\\"string\\\",\\\"partnerId\\\":\\\"string\\\",\\\"tenantId\\\":\\\"string\\\",\\\"url\\\":\\\"string\\\",\\\"key\\\":\\\"string\\\",\\\"linkProps\\\":{\\\"externalId\\\":\\\"123456\\\",\\\"tenantId\\\":\\\"string\\\",\\\"partnerId\\\":\\\"string\\\",\\\"prefix\\\":\\\"string\\\",\\\"archived\\\":true,\\\"tagIds\\\":\\\"string\\\",\\\"tagNames\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\",\\\"expiresAt\\\":\\\"string\\\",\\\"expiredUrl\\\":\\\"string\\\",\\\"password\\\":\\\"string\\\",\\\"proxy\\\":true,\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"image\\\":\\\"string\\\",\\\"video\\\":\\\"string\\\",\\\"rewrite\\\":true,\\\"ios\\\":\\\"string\\\",\\\"android\\\":\\\"string\\\",\\\"doIndex\\\":true,\\\"utm_source\\\":\\\"string\\\",\\\"utm_medium\\\":\\\"string\\\",\\\"utm_campaign\\\":\\\"string\\\",\\\"utm_term\\\":\\\"string\\\",\\\"utm_content\\\":\\\"string\\\",\\\"ref\\\":\\\"string\\\"}}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/partners/links/upsert\")\n .put(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}]
description: "Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created."
4146
4146
tags:
4147
4147
- "Partners"
@@ -9659,7 +9659,7 @@ components:
9659
9659
properties:
9660
9660
"id":
9661
9661
type: "string"
9662
-
description: "The unique identifier of the customer in Dub."
9662
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
9663
9663
"externalId":
9664
9664
type: "string"
9665
9665
description: "Unique identifier for the customer in the client's app."
@@ -10852,7 +10852,7 @@ components:
10852
10852
properties:
10853
10853
"id":
10854
10854
type: "string"
10855
-
description: "The unique identifier of the customer in Dub."
10855
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
10856
10856
"externalId":
10857
10857
type: "string"
10858
10858
description: "Unique identifier for the customer in the client's app."
@@ -13083,7 +13083,7 @@ components:
13083
13083
properties:
13084
13084
"id":
13085
13085
type: "string"
13086
-
description: "The unique identifier of the customer in Dub."
13086
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
13087
13087
"externalId":
13088
13088
type: "string"
13089
13089
description: "Unique identifier for the customer in the client's app."
@@ -14218,7 +14218,7 @@ components:
14218
14218
properties:
14219
14219
"id":
14220
14220
type: "string"
14221
-
description: "The unique identifier of the customer in Dub."
14221
+
description: "The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`)."
14222
14222
"externalId":
14223
14223
type: "string"
14224
14224
description: "Unique identifier for the customer in the client's app."
0 commit comments