With this function, you create/modify hook.
Parameter name | Type | Description | Possible values | Example |
---|---|---|---|---|
_id | String | Required on action modify The ID of the hook. |
5b3219e1d5ac5e453a7cb842 | |
action | String | Required The action you want to perform. |
|
|
name | String | Required on action create The name of the hook. |
||
positiontype | Integer | When you want to run the process, pre/post action. |
|
|
position | Integer | The hook type you want. |
|
|
list[] | List | List of Backup Jobs/Clone Jobs/Restore Types/Download Types/Destinations to execute when the hook is triggered.
List of Strings
|
||
script | String | Required on action create The hook script/hook script path. |
||
disabled | Boolean | Whether the hook is disabled. |