If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Need help running a report using REST API

Started by abel_enable_, Today at 09:40:54 AM

Previous topic - Next topic

abel_enable_

Hi all,

Here's what I've tried so far which doesn't seem to work..

- As per the documentation, I've sent a PUT request to /api/v1/session and got the session cookies.
- I've used this to authenticate and I was successfully able to get output for GET /api/v1/content
- In this output I have info about team folders and my personal folder, but when i try to see contents inside these folders using /api/v1/content/team_folders/items I get a 403 forbidden error.

To run the report (which is my goal) I've tried stuff like /api/v1/{report id}/run or /execute but it keeps throwing an error saying forbidden or unauthorized. Which is strange because I have the access to read n write anything in all the folders.

Could anyone please suggest something that i can try?

P.S : giving search path instead of report id doesnt work either.

dougp

What version of Cognos Analytics?  Looking at the docs for 12.0.4, I don't see /api/v1/{report id}/run being an option.