AIP Console - Information - V2 - How to activate or deactivate rules in TCC via the console's REST Swagger APIs


Purpose

This page will help you to activate-deactivate rules in TCC via the console's REST/Swagger APIs.

Applicable Platform

AIP Platform

Yes/No

CAST AIP 8.3(tick) 
AIP Console VersionYes/No
AIP Console 2.x or greater(tick)
Action Plan

The below API we can call from any API platform: The application_guid below usually can be seen in the console URL for application actions.

You can also get it from : AIP Console - Information - V2 - How to get an application GUID for an application AIP Console

  1.  The attribute value to be used is '1' to activate and '0' to deactivate the rule. ConfigRuleIds is the rule id number.

    Delete Application Queries
    We can activate and deactivate the rules one by one using API:
     
    PUT method
     
    http://<hostname>:<Port>/api/applications/<app_guid>/function-points/configuration-rules/
     
    Body:   
     
    {
    "configRuleIds": [
      
    ],
    "attributeName": "activation",
    "attributeValue": 1
    }
     
     
    example:
     
    {
    "configRuleIds": [
      310
    ],
    "attributeName": "activation",
    "attributeValue": 1
    }
     
    
    
    
    
    1. Below is the example from the Postman:
    2. Below is the screenshot from the AIP Console TCC tab where we are activating and deactivating the rules.
  2.  Refresh the Console URL in the browser to see the activation and deactivation changes you have done.
  3. If the problem you are facing does not match any case listed in this page, report your problem to CAST Technical Support and provide the below Relevant input for CAST Technical Support to reproduce the issue.
Notes/comments
Ticket # 44954