shelly_script_put_code
Upload code into a script on a Shelly device, automatically splitting large code into 1 KB chunks and replacing or appending to the script body.
Instructions
Upload code into a script (chunked). Arbitrary code on the device → confirm:true.
append=false replaces the script body; true appends. Large code is split into
≤1 KB chunks automatically. Audit-logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| code | Yes | ||
| append | No | ||
| device | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||