add warning in config
add document upload on POST, document metadata edit on PUT