rest/script

rest/script

See Scripting for more information about this feature.

URL

http://<<ip address>>/rest/script/

Method

GET

Description

Receive the saved script

Response

".. script code ..."

Note that the response is a valid JSON string. If you want to eval the script, you have to JSON.parse it first.

If no script is available, an empty string is returned.

Possible Error

-

Status

Added in 2.4.0

URL

http://<<ip address>>/rest/script/

Method

POST

Description

Create a new script.

Request

"... script code ..."

Response

HTTP201 without body if created or updated

Possible Error

-

Status

Added in 2.4.0