ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  children: { code: string
                  | null; id: string; name: string }[];
                  code: string | null;
                  createdAt: Date;
                  id: string;
                  name: string;
                  parent: { code: string | null; id: string; name: string } | null;
                  parentId: string | null;
                  updatedAt: Date;
                  rawMaterialsCount: number;
                  _count: undefined;
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  children: { code: string
                  | null; id: string; name: string }[];
                  code: string | null;
                  createdAt: Date;
                  id: string;
                  name: string;
                  parent: { code: string | null; id: string; name: string } | null;
                  parentId: string | null;
                  updatedAt: Date;
                  rawMaterialsCount: number;
                  _count: undefined;
              },
          >,
      >