I am trying to create a pivot table on a confluence page through the REST API. Basicly I have to peridically update a page on my confluence space with some data oganized as a table. Currently I can update these contents as an html table and later manually wrap the table with the pivot table macro to create the pivot table display on the page, but I would like to do everything automatically from a script by generating the proper XHTML code so that I can update the page by passing this code as the body contents of a REST API content update call.