1. Navigate to /opt/Deployments/lrs/repository/META/HEAD/sitebuilder/content/groups/APIs
2. Run the following command and list the files ls -lrt
3. Now look for the files with extension .xml-temp and if look at the file size it will be 0
4. move all the files with .xml-temp extension to /tmp for now
5. Restart portal service and now try to add the api's to the application.