Confluence REST API, creating a new page with large excel data does not work


I am trying to create a new page with large excel data using REST API i get the following error, but it works for smaller sized excel files

 {message: Response too large. request for this response can be at most 5242880 bytes, statuscode:413)


Tried setting MaxPostSize="-1" in server.xml still gives the same error 



import requests;
import json;
import pandas as pd;
import xlrd;


def read_excel():
return x.to_html();

def new_confluence_page(space_key,title,body):
data = {"type":"page","title":title,"space":{"key":space_key},"body":{"storage":{"value":body,"representation":"storage"}}}
return requests.request('POST',url,auth=('admin','admin'), json=data)

def test_module():
resp=new_confluence_page('TEST1','TEST PAGE HOME-2',table)






1 answer

0 votes


Can you increase the maximum size your server accepts? Have a look at the following for information on where you can update that:

Kind Regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

146 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you