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.

897 B
Raw Blame
import { openApiErrorResponses } from "@/lib/openapi/responses";
import { LinkSchema, bulkUpdateLinksBodySchema } from "@/lib/zod/schemas/links";
import { ZodOpenApiOperationObject } from "zod-openapi";
import * as z from "zod/v4";

export const bulkUpdateLinks: ZodOpenApiOperationObject = {
  operationId: "bulkUpdateLinks",
  "x-speakeasy-name-override": "updateMany",
  summary: "Bulk update links",
  description:
    "Bulk update up to 100 links with the same data for the authenticated workspace.",
  requestBody: {
    content: {
      "application/json": {
        schema: bulkUpdateLinksBodySchema,
      },
    },
  },
  responses: {
    "200": {
      description: "The updated links",
      content: {
        "application/json": {
          schema: z.array(LinkSchema),
        },
      },
    },
    ...openApiErrorResponses,
  },
  tags: ["Links"],
  security: [{ token: [] }],
};