Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Set Module Text

Update text in RAPID module

URL

/rw/rapid/modules/{module}

Method

POST

URL Params

task={Task Name} Required

action=set-module-text Required

Data Params

text={Input Text} Required

Success Response

HTTP_OK(200), see HTTP Status codes

Example Response

<html>
<head>
<title>rapid</title>
<base href= "http://localhost:7777/rw/rapid/" />
</head>
<body>
<div class="state">
<a href= "modules/MainModule?task=T_ROB1&action=set-module-text" rel="self"/>
<ul>
<li class="rap-set-module-text" title="set-module-text">
<span class="module-changed-name">TRUE</span>
<span class="new-modnam">MainModule1</span>
<span class="change-count">103879</span>
</li>
</ul>
</div>
</body>
</html>

Error Response

BAD_REQUEST(400),NOT_FOUND(404), see HTTP Status codes

Sample Call

curl --digest -u "Default User":robotics -X POST -d "text=SampleTest" -X POST "http://localhost/rw/rapid/modules/MainModule?task=T_ROB1&action=set-module-text"

Notes

Not supported in bootserver mode