Robot Web Services
3HAC050973-001 Revision:L, Application Manual - Robot Web Services
|
Rename a directory
/fileservice/{device|environment_variable}/{directory}
POST
HTTP_OK(200)
<?xml version="1.0" encoding="utf-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>File Service</title> <base href="http://localhost/fileservice/%24home/docs/newdir/" /> </head> <body> <div class="state"> <a href="" rel="self"></a> <a href="../" rel="parent"></a> <a href="?action=show" rel="action"></a> <ul> </ul> </div> </body> </html>
UNAUTHORIZED(401), NOT_FOUND(404), BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), METHOD_NOT_ALLOWED(405)
See Robot controller return codes
Rename a directory
curl --digest -u "Default User":robotics -d "fs-newname=newdir&fs-action=rename" -X POST "http://localhost/fileservice/$home/testdir"
Supported in bootserver mode