Update a File
The PUT operation updates a file on the server relative to CATALINA_BASE. This has exactly the same semantics as POST, except that instead of creating new files, it returns a 404 status code if the file does not exist. URLs are of the form http://localhost:8080/console/api/servers/73d89173-290e-4cb3-a61c-e11deb74767d/files/<path> where
<path> is the path of the file you want to update. The request body contains the file.
PUT http://localhost:8080/console/api/servers/local$d6f9cf62-f09c-4bf6-9d73-a16fec39dffc/files/conf/server.xml Content-Type: application/octet-stream <?xml version="1.0" encoding="UTF-8"?> <Server port="8005" shutdown="SHUTDOWN"> ....
200 OK Content-Length: 0 Content-Type: application/json Server: Apache-Coyote/1.1 Date: Mon, 10 Aug 2015 16:17:12 GMT