The changeSubscriptionComment script allows the user to change the comment of every active subscription to the comment set on the subscription type.
To achieve this, the script utilizes GraphQL queries to both read and write information in the workspace.
Before you start, do the following:
- Completely set up the subscriptions and the subscription types themselves.
- Set up Python with the following libraries:
pip install requests
To run the script, use the following command:
LEANIX_API_TOKEN=<YOUR API TOKEN> LEANIX_SUBDOMAIN=<YOUR INSTANCE> python changeSubscriptionComment.py