diff --git a/packages/server/src/api/rest/index.ts b/packages/server/src/api/rest/index.ts index abea2aee9..a2df2707f 100644 --- a/packages/server/src/api/rest/index.ts +++ b/packages/server/src/api/rest/index.ts @@ -317,7 +317,7 @@ class RequestHandler extends APIHandlerBase { let match = this.urlPatterns.collection.match(path); if (match) { const body = requestBody as any; - const upsertMeta = this.upsertMetaSchema.safeParse(body.meta); + const upsertMeta = this.upsertMetaSchema.safeParse(body); if (upsertMeta.success) { // resource upsert return await this.processUpsert(