The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add description for externalId in update and delete api
Kiran K49ad51e72020
diff --git a/apps/web/lib/openapi/links/delete-link.ts b/apps/web/lib/openapi/links/delete-link.tsindex c48145f6d1..134ff42e11 100644--- a/apps/web/lib/openapi/links/delete-link.ts+++ b/apps/web/lib/openapi/links/delete-link.ts@@ -14,7 +14,7 @@ export const deleteLink: ZodOpenApiOperationObject = {path: z.object({linkId: z.string().openapi({description:- "The id of the link to delete. You can get this via the `getLinkInfo` endpoint.",+ "The id of the link to delete. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.",}),}),},diff --git a/apps/web/lib/openapi/links/edit-link.ts b/apps/web/lib/openapi/links/edit-link.tsindex 2f2234c78f..84414b7660 100644--- a/apps/web/lib/openapi/links/edit-link.ts+++ b/apps/web/lib/openapi/links/edit-link.ts@@ -15,7 +15,7 @@ export const editLink: ZodOpenApiOperationObject = {path: z.object({linkId: z.string().openapi({description:- "The id of the link to edit. You can get this via the `getLinkInfo` endpoint.",+ "The id of the link to edit. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.",}),}),},diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex 1bd8107bca..705be0eb24 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -140,7 +140,7 @@ export const createLinkBodySchema = z.object({.max(255).nullish().describe(- "This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with 'ext_' when passed as a query parameter.",+ "This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with `ext_` when passed as a query parameter.",).openapi({ example: "123456" }),prefix: z