How to insert excel content into confluence by rest api?

The operation I want can finish by mouse as below pictures. But how can I do it via rest api?
thank you.

Hi @zengqing ,

Welcome to the Atlassian Developer Community. Have you seen the Confluence REST API documentation and the Confluence Getting Started guides? If so, would you mind clarifying which aspect you are stuck on?


I want a page like below picture.The excel is a attachment.How can I get it by rest api? Thanks

I want Adding macro content to a page like the link below, the difference is I want accomplish it by rest api.