Robot Web Services
3HAC050973-001 Revision:L, Application Manual - Robot Web Services
Rename a directory

Rename a directory

URL

/fileservice/{device|environment_variable}/{directory}

Method

POST

URL Params

See Common URL parameters

Data Params

  • fs-newname=The new directory name fs-get-directory-actions Required
  • fs-action=rename Required

Success Response

HTTP_OK(200)

Example Response

<?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>

Error Response

UNAUTHORIZED(401), NOT_FOUND(404), BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), METHOD_NOT_ALLOWED(405)

See Robot controller return codes

Sample Call

Rename a directory

curl --digest -u "Default User":robotics -d "fs-newname=newdir&fs-action=rename" -X POST "http://localhost/fileservice/$home/testdir"

Notes

Supported in bootserver mode