Update Report Configuration and Schedule

To configure and schedule reports:
  1. Log in to the REST API server using administrator credentials. You must also forward the session ID variable with each API call.
  2. Use the POST method to access the /reports_config endpoint and configure and schedule reports.

    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":""
    }
    }
    Click to expand in new window

    Request Body Parameters

    Parameter Description Data Type
    title Report name String
    dest The destination. 0=local, 1=email. Integer
    ctx Context String
    email 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
    }