413 errors: Request entity is larger than limits defined by server error using REST.

Document ID : KB000095411
Last Modified Date : 10/05/2018
Show Technical Document Details
Issue:
We are looking to delete multiple devices from CAPM. We are using the REST API but we are getting 413 errors: Request entity is larger than limits defined by server. We are looking for either a way to configure the server to allow the reset command: http://:8581/rest/devices to complete.
Resolution:
The limit can be increased by using the following procedure. 

1. Create a file named com.ca.im.item.ws.impl.AutomaticWebServiceManagerImpl.cfg in the DA's INSTALL_ROOT/apache-karaf-XXX/etc/ directory. 
2. Add the following line to that file: 
maxReturnItemCount=500001