Impossible to modify pre/post/error chains of a rule without specifying the path
Example:
$ gw rule get recv receive
● Rule recv (RECEIVE)
Comment:
Path: /upload
In directory:
Out directory:
Work directory:
Pre tasks:
Post tasks:
Error tasks:
Authorized agents:
├─Servers:
├─Partners:
├─Server accounts:
└─Partner accounts:
$ gw rule update recv receive -s '{"type": "MOVERENAME", "args": {"path":"#OUTPATH#/#ORIGINALFILENAME#"}}'
unexpected error: 500 - No content found to be updated
$ gw rule update recv receive -p '/upload' -s '{"type": "MOVERENAME", "args": {"path":"#OUTPATH#/#ORIGINALFILENAME#"}}'
The rule recv was successfully updated.
$ gw rule get recv receive
● Rule recv (RECEIVE)
Comment:
Path: /upload
In directory:
Out directory:
Work directory:
Pre tasks:
Post tasks:
└─Command MOVERENAME with args: {"path":"#OUTPATH#/#ORIGINALFILENAME#"}
Error tasks:
Authorized agents:
├─Servers:
├─Partners:
├─Server accounts:
└─Partner accounts: