COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Administration and Security => Topic started by: abel_enable_ on 21 Nov 2025 09:40:54 AM

Title: Need help running a report using REST API
Post by: abel_enable_ on 21 Nov 2025 09:40:54 AM
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.
Title: Re: Need help running a report using REST API
Post by: dougp on 21 Nov 2025 10:06:09 AM
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.