PUT Edit Watch Directory
Update watch directory API is used to edit the details of an existing watch directory.
Method | URI |
---|---|
PUT |
/cdwebconsole/svc/watchdirectory |
The following example shows the Command:
curl -X 'PUT' \
'https://172.20.186.31:9456/cdwebconsole/svc/watchdirectory' \
-H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMzE6MTM2MzpjNmRiM2MwNy1iZjAzLTQ1NDQtYWYxNC1iODI0M2Y1NDRhMWEiLCJleHAiOjE3MTQ1NTg0NjB9.9nbSIBrGRVHlANRLgT16J5yC1xvRQjUJtm2VUTwrH3Ad8VDhg_uLj30_ZUQD6AntSb5D51BiTHyTwROA9ZCoqQ' \
-H 'Content-Type: application/json' \
-H 'X-XSRF-TOKEN: 2608f1ec-8ff7-474b-bdaa-e069bfd9f6f1' \
-d '{"watchedDir":"/home/Dir2","comments":"Testing only","monitorSubDirectories":""}'
Parameter Name | Required/Optional | Description | Valid values |
---|---|---|---|
watchedDir |
Required |
Specifies the name for the watch directory you want to edit. |
|
comments | Optional | Specifies the comment for the watch directory you are editing. | |
monitorSubDirectories | Optional | Specify if you need to monitor sub directories for the watch directory. | true or false |
The following example shows the Sample HTTP User
Request:
HTTPS User Request:
{
"watchedDir": "/home/Dir2",
"comments": "Testing",
"monitorSubDirectories": ""
}
The following example shows the Sample Response:
{
"messageCode": 200,
"message": "Watch Directory has been updated successfully"
}