videosphere
    Preparing search index...
    • Handles PATCH requests for this route.

      Parameters

      • request: NextRequest

        The incoming request object.

      • context: { params: Promise<{ userId: string }> }

        Route context containing the target user id.

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<ApiResponse<{ user: AdminUserMutationRow }>>,
      >

      A response describing the request result.