Solved

How to use RestAPI for reports

  • 29 March 2024
  • 2 replies
  • 48 views

Badge +3

Hi,

I’ve seen that I can get a RestAPI call for a report like it is mentioned in that topic:
 

 

How do I use this URL e.g. in a python script?
Have I just to run a command like the following after I’ve done a login?
 

payload={}
headers = {
'Accept': 'application/json',
'Authtoken': token
}
url = <API CALL URL>
response = requests.request("GET", url, headers=headers, data=payload)

 

Second Question, which permissions are necessary to keep the user rights as secure as possible?

 

BR
Jan

icon

Best answer by MaheshPrakash 1 April 2024, 16:00

View original

2 replies

Badge +2

Hi @JanR , yes the url can be directly used. for the permission question, you could give “execute report” permission at the individual report level or the entire commcell level to execute the reports based on your preference.

Badge +3

Hi MaheshPrakash,

great, it works!
Thx!

Reply