PUT Change Priority of Existing Rule

Change Priority of existing rule API use to change the priority of existing rule.

Method URI

PUT

/cdwebconsole/svc/fileagentrule/priority

The following example shows the Command:
curl -X 'PUT' \
  'https://172.20.183.160:9443/cdwebconsole/svc/fileagentrule/priority' \
  -H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODUuOTU6MTM2Mzo1MTI5NzljMi01ZGU5LTQxZjgtYTg5Ni1mZWMzMmIyNWVlYmYiLCJleHAiOjE3MTQ1MDQwOTV9.S3Wv2GCpL4hV1CXMpRAH5Ij59e2jhZMLw7nIN4VVW1tziINTwofyNpFcTU3cJNnnDjPJsH8dNwt_jQqFni0-ow' \
  -H 'Content-Type: application/json' \
  -H 'X-XSRF-TOKEN: ef0c5ea5-3afa-4a0e-83d1-e24fb395957e' \
  -d '{"currentPriority":"1","newPriority":"4"}'
Table 1. Change Priority of existing rule URI input parameters
Parameter Name Required/Optional Description Valid values

currentPriority

Required

Specify Current Priority

Validation: String

 
newPriority Required Specify New Priority

Validation: String

 
The following example shows the HTTP User Request:
{
 "currentPriority": "1",
 "newPriority": "4"
}
The following example shows the Sample Response:
{
  "messageCode": 200,
  "message": "File Agent Rule priority set successfully"
}