The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Deprecate POST /customers
Steven Teyc6fbe5d4d9d2
diff --git a/apps/web/lib/openapi/customers/create-customer.ts b/apps/web/lib/openapi/customers/create-customer.tsindex dd8256ef6a..d98c4fe515 100644--- a/apps/web/lib/openapi/customers/create-customer.ts+++ b/apps/web/lib/openapi/customers/create-customer.ts@@ -9,7 +9,9 @@ export const createCustomer: ZodOpenApiOperationObject = {operationId: "createCustomer","x-speakeasy-name-override": "create",summary: "Create a customer",- description: "Create a customer for the authenticated workspace.",+ description:+ "[Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.",+ deprecated: true,requestBody: {content: {"application/json": {diff --git a/apps/web/tests/customers/index.test.ts b/apps/web/tests/customers/index.test.tsindex e852737921..09d32f697d 100644--- a/apps/web/tests/customers/index.test.ts+++ b/apps/web/tests/customers/index.test.ts@@ -32,18 +32,6 @@ describe.sequential("/customers/**", async () => {await h.deleteCustomer(customerId);});- test("POST /customers", async () => {- const { status, data: createdCustomer } = await http.post<Customer>({- path: "/customers",- body: customerRecord,- });-- expect(status).toEqual(201);- expect(createdCustomer).toStrictEqual(expectedCustomer);-- customerId = createdCustomer.id;- });-test("GET /customers/{id}", async () => {const { status, data: retrievedCustomer } = await http.get<Customer>({path: `/customers/${customerId}`,