Jira and Confluence CLOUD - REST API Automation to attach a excel file on newly created pages

Hello,

Been trying to find the right info but most of what I find relates to Server / Data Center versions.

I have an automation when a JIRA ticket is created, it creates a Confluence Page using the JIRA ticket ID as the page title.

I need to manually attach a “template” excel file to each of those confluence page so the users can access this file and edit it.

my excel file could be available in a ticket or a “main” confluence page, but I really can’t figure a way to copy it to a new page and rename this file to let’s say “MOST-XXXX BOE Light.xlsx” MOST-XXXX being the ID of the Jira ticket.

any guidelines would be most welcome.