REST API
Documentation for the plugin's API, which can be used to create custom controls etc. in other services.
Last updated
Was this helpful?
Documentation for the plugin's API, which can be used to create custom controls etc. in other services.
Last updated
Was this helpful?
The plugin implements a , which enables external access to the plugin's functionality.
It has a single endpoint, supporting a get request and posting a command.
GET
http://octopi.local/api/plugin/ws281x_led_status
Get current state of the plugin, which includes the light status and the torch status.
X-Api-Key
string
A valid OctoPrint API key.
POST
http://octopi.local/api/plugin/ws281x_led_status
Send commands to the plugin, to make it do something.
X-Api-Key
string
A valid OctoPrint API key
command
string
The command to be sent to the plugin. See commands below.
See also the for details about how the request should be structured.