Updating a confluence page using uipath

Hi Everyone,
I am trying to update a confluence page with some content and images, however, it is very tough to add in a text after adding an image..
The confluence page will look like-
Text1
Image1
Text2
Image2

Please suggest a way

I’d look into doing it via API instead.
The Confluence Cloud REST API

Updating a “living” page via UI automation can be quite tricky once you involve images and have to deal with formatting.

I’m new to using APIs in UiPath, is there any sample document which i can refer?

You have to obtain privileges and permissions to use API’s.
See this page: The Confluence Cloud REST API

You could use integration service:
Integration Service - About the Confluence Cloud connector

This enables you to use pre-built activities (might be helpful if you’re new to this)
Activities - Activities

Or you can read the documentation from Confluence as I’ve linked to in my previous post, and use HTTP Request in UiPath.
Activities - HTTP Request