/config/lua/ctrld/{script}

The control script.

Get /config/lua/ctrld/{script}

SecurityApiKey
Request
path Parameters
script
required
string

The name of a Lua script.

Responses
200

Normal response.

401

Unauthorized response.

get/config/lua/ctrld/{script}
Request samples
Response samples
application/json
{
  • "result": "print(\"this is control script test\");",
  • "error": "Error message (present if an error occurred)."
}

Replace /config/lua/ctrld/{script}

SecurityApiKey
Request
path Parameters
script
required
string

The name of a Lua script.

Request Body schema: application/json
string (configLuaCtrldScript)

The control script.

Responses
200

Normal response.

401

Unauthorized response.

put/config/lua/ctrld/{script}
Request samples
application/json
"print(\"this is control script test\");"
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Update /config/lua/ctrld/{script}

SecurityApiKey
Request
path Parameters
script
required
string

The name of a Lua script.

Request Body schema: application/json
string (configLuaCtrldScript)

The control script.

Responses
200

Normal response.

401

Unauthorized response.

post/config/lua/ctrld/{script}
Request samples
application/json
"print(\"this is control script test\");"
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Delete /config/lua/ctrld/{script}

Delete the script.

SecurityApiKey
Request
path Parameters
script
required
string

The name of a Lua script.

Responses
200

Normal response.

401

Unauthorized response.

delete/config/lua/ctrld/{script}
Request samples
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}