/config/lua/script/teamd

The Lua script loaded by the register calculator. This script can be used to define helper functions that can then be called from register formulas.

If loading this script takes longer than 15 seconds or evaluating the register formulas takes longer than half the update-interval, an alert is raised.

Get /config/lua/script/teamd

SecurityApiKey
Responses
200

Normal response.

401

Unauthorized response.

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

Replace /config/lua/script/teamd

SecurityApiKey
Request
Request Body schema: application/json
string (configLuaScriptTeamd)

The Lua script loaded by the register calculator. This script can be used to define helper functions that can then be called from register formulas.

If loading this script takes longer than 15 seconds or evaluating the register formulas takes longer than half the update-interval, an alert is raised.

Responses
200

Normal response.

401

Unauthorized response.

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

Update /config/lua/script/teamd

SecurityApiKey
Request
Request Body schema: application/json
string (configLuaScriptTeamd)

The Lua script loaded by the register calculator. This script can be used to define helper functions that can then be called from register formulas.

If loading this script takes longer than 15 seconds or evaluating the register formulas takes longer than half the update-interval, an alert is raised.

Responses
200

Normal response.

401

Unauthorized response.

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

Delete /config/lua/script/teamd

Reset to empty string.

SecurityApiKey
Responses
200

Normal response.

401

Unauthorized response.

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