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

Upload a file

URL

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

Method

PUT

URL Params

See Common URL parameters

Data Params

The file content

Success Response

HTTP_OK(200), CREATED(201)

Example Response

No content

Error Response

UNAUTHORIZED(401), NOT_FOUND(404), FORBIDDEN(403), BAD_REQUEST(400)

See Robot controller return codes

Sample Call

Upload a file

curl --digest -u "Default User":robotics -d -X PUT "http://localhost/fileservice/$home/test.txt"

Notes

If the file exists, the file is overwritten with the specified content else a new file with the given name is created.

Supported in bootserver mode

Maximum supported file size is less than 800MB.