The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { openApiErrorResponses } from "@/lib/openapi/responses";
import { ZodOpenApiOperationObject } from "zod-openapi";
import * as z from "zod/v4";
export const bulkDeleteLinks: ZodOpenApiOperationObject = {
operationId: "bulkDeleteLinks",
"x-speakeasy-name-override": "deleteMany",
summary: "Bulk delete links",
description: "Bulk delete up to 100 links for the authenticated workspace.",
requestParams: {
query: z.object({
linkIds: z.array(z.string()).meta({
example: ["clux0rgak00011...", "clux0rgak00022..."],
param: { explode: false, style: "form" },
description:
"Comma-separated list of link IDs to delete. Maximum of 100 IDs. Non-existing IDs will be ignored.",
}),
}),
},
responses: {
"200": {
description: "The deleted links count.",
content: {
"application/json": {
schema: z.object({
deletedCount: z.number().meta({
description: "The number of links deleted.",
}),
}),
},
},
},
...openApiErrorResponses,
},
tags: ["Links"],
security: [{ token: [] }],
};