Skip to main content

Variable API (1.0.0)

Download OpenAPI specification:Download

변수 매니저 & 파이썬 스크립트 API

Python

/py/install: Install a Python package

This endpoint allows you to install a Python package.

Request Body schema: application/x-www-form-urlencoded
required
package_name
required
string

The name of the package to install.

Responses

/py/packages: Get all installed Python packages

This endpoint allows you to get all installed Python packages.

Responses

/py/runner: Run Python code and return the result

This endpoint allows you to run Python code and return the result.

Request Body schema: application/json
required

The Python code to run.

string

Responses

Request samples

Content type
application/json
"string"

/py/uninstall: Uninstall a Python package

This endpoint allows you to uninstall a Python package.

Request Body schema: application/x-www-form-urlencoded
required
package_name
required
string

The name of the package to uninstall.

Responses

Rendering

vm/render: Render a string as a Jinja2 template

This endpoint allows you to render a string as a Jinja2 template.

Request Body schema: application/x-www-form-urlencoded
required
template_string
required
string

The string to render as a Jinja2 template.

Responses

Variables

/vm/var: Get all user-defined variables

This endpoint allows you to get all user-defined variables.

Responses

/vm/var: Set a user-defined variable

This endpoint allows you to set a user-defined variable.

Request Body schema: application/x-www-form-urlencoded
required
key
required
string

The key of the variable.

value
required
string

The value of the variable.

Responses

/vm/var/{key}: Clear a user-defined variable

This endpoint allows you to clear a user-defined variable.

path Parameters
key
required
string

The key of the variable to clear.

Responses

/vm/vars: Clear all user-defined variables

This endpoint allows you to clear all user-defined variables.

Responses

/vm/vars: Set multiple user-defined variables

This endpoint allows you to set multiple user-defined variables.

Request Body schema: application/json

The variables to set.

property name*
additional property
string

Responses

Request samples

Content type
application/json
{
  • "property1": "string",
  • "property2": "string"
}