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

Rename a file

URL

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

Method

POST

URL Params

See Common URL parameters

Data Params

  • fs-newname=The new file name Required
  • fs-action=rename Required

Success Response

NO_CONTENT(204)

Example Response

No content

Error Response

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

See Robot controller return codes

Sample Call

Rename a file

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

Notes

Supported in bootserver mode