diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-06-28 12:58:03 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-06-29 11:48:33 +0200 |
commit | a496da17ea042244ec97e50a96ed64e5bda6e000 (patch) | |
tree | 02597d9eb69af2c8a6c115365fd8821babbee126 /cfg | |
parent | cf7d0742a3368321310290c256a8b63827640b8c (diff) |
#915 Add POST /procedure/update method
Adds the possibility to update a procedure with commands and other
procedures integrated as steps.
Note: "steps" parameter is optional and "steps" array object order
defines execution order. Also, if the body has empty steps, the
procedure loses its previous steps.
Request:
POST /procedure/update
{
"procedure": "34",
"center": "1",
"name": "procedure-edited",
"description": "My procedure edited",
"steps": [
{
"command": "wol",
"params": { "type": "broadcast" }
},
{
"procedure": 24
},
{
"command": "reboot",
"params": {}
}
]
}
Response:
200 OK
Diffstat (limited to 'cfg')
0 files changed, 0 insertions, 0 deletions