Does this have the information you need?
Introduction to sharing web layers—ArcGIS Pro | Documentation
Thank you for your reply. No, I need help using python api to publish the table. Preferably someone to send a simple code snippet that does this.
Ah, yes, sorry about that. The FeatureSharingDraft class has a code sample for publishing a layer and a table.
No worries! That looks promising. I'll give that a test later today. Thanks!
I had some success with scripts derived from this blog post last year. Publish and overwrite web layers in ModelBuilder (esri.com)