Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  How to activate Disable this entry (for a report or folder) with RESP API?

    Posted 03/16/22 10:10 AM
    Hi,

    I would like to know if it is possible to use RESP API for Disable this entry (for a report or folder).


    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: How to activate Disable this entry (for a report or folder) with RESP API?

    Posted 03/25/22 05:35 AM
    Hi,

    Any idea on this topic?

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 3.  RE: How to activate Disable this entry (for a report or folder) with RESP API?

    Posted 03/29/22 03:41 PM

    Try this:

    fetch(
      gateway+'/v1/objects/'+folderStoreID
      , { 
        'headers': {
          'content-type': 'application/json'
        , 'x-xsrf-token': xsrfToken
      }
      , 'body': '{\'disabled\':true,\'type\':\'folder\'}'
      , 'method': 'PUT'
      , 'mode': 'cors'
      , 'credentials': 'include'
      }   
    );

    Variables there are the gateway, folderStoreID, xsrfToken. 



    ------------------------------
    Paul Mendelson
    ------------------------------