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

Create a directory

URL

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

Method

POST

URL Params

See Common URL parameters

Data Params

  • fs-newname=The new directory name. See Notes below Required
  • fs-action=create Required

Success Response

CREATED(201)

Example Response

No content

Error Response

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

See Robot controller return codes

Sample Call

Create a new directory

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

Notes

Only relative path are allowed for "*fs-newname*". Absolute paths are not supported

The fs-newname can take nested directory structure e.g. fs-newname=parentdir/subdir will create both the directories if they don't exist i.e. subdir under parentdir

Supported in bootserver mode