/api/website/<id>: Make name and domain fields optional in POST request schema

This commit is contained in:
Florian Weber 2025-08-19 14:43:33 +00:00
parent 60eaaaff60
commit 7343ee4593

View file

@ -31,8 +31,8 @@ export async function POST(
{ params }: { params: Promise<{ websiteId: string }> },
) {
const schema = z.object({
name: z.string(),
domain: z.string(),
name: z.string().optional(),
domain: z.string().optional(),
shareId: z.string().regex(SHARE_ID_REGEX).nullable().optional(),
});