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 PlatformYes/No
CAST AIP 8.3
AIP Console VersionYes/No
AIP Console 2.x or greater

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.

We can activate and deactivate the rules one by one using API:

PUT method

http://:/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. ![](https://doc-data.castsoftware.com/TG/attachments/669253739/669614263.png)
   3. Below is the screenshot from the AIP Console TCC tab where we are activating and deactivating the rules.
   4. ![](https://doc-data.castsoftware.com/TG/attachments/669253739/669614264.png)
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](https://help.castsoftware.com/hc/en-us/requests/new) and provide the below [Relevant input](/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/cast-aip-console/) for CAST Technical Support to *reproduce the issue..*

**Notes/comments**

Ticket # 44954

**Related Pages**

*[AIP Console - Interactive API documentation#apikey](https://doc.castsoftware.com/export/AIPCONSOLE/AIP+Console+-+Interactive+API+documentation#AIPConsoleInteractiveAPIdocumentation-apikey)*