Sample Request
curl -X POST --cookie auth_token=$cookie http://134.141.242.93/nsight-ui/api/v1/
reports_config
-H "Content-Type: application/json"
-d {
"title":"Daily Offline Devices",
"type":"5bd2f389fbce720c74b5518e",
"scopeType":"system",
"list_id":"system",
"siteGrpTree":"SiteGroup",
"period":"2",
"scheduled":false,
"dom":null,
"dow":null,
"fmt":[
true,
false
],
"dest":"1",
"email":"support@extremenetworks.com",
"_id":"",
"ctx":"/System",
"custrt":"",
"cuend":"",
"rcrtime":"18:30",
"persist":"true",
"runnow":"false",
"pcidata":""
}
}
Request Body Parameters
| Parameter | Description | Data Type |
|---|---|---|
| title | Report name | String |
| dest | The destination. 0=local, 1=email. | Integer |
| ctx | Context | String |
| Destination email | String | |
| dom | Day of month | Integer |
| dow | Day of week | Integer |
| rcrtime | Recurrence time | String |
| fmt | Report format - 'pdf', 'xls' | Array |
| rn | Report template name | String |
| persist | Persistence flag | Boolean |
Sample Response (200 OK)
The server returns the updated configuration.
{
"data":{},
"success": true
}