The example provided under jenkins is using the cli to interact with API Connect. Additional example can be found at CICD Pipeline for API Connect via Jenkins
Example of how to use cli is provided at the folder cli readme.
Those examples describe how do login, list drafts and publish a product. You can find more details on how to use cli in my post APIC CLI Getting Started.
Automate the deployment using shell script that are using the APIC REST API.
The example shows how to get access to the management node and publish a product with the exposed API Connect REST API.
You can find more details on how to use cli in my post APIC RESTAPI.
Example file provided here:
The script is using jq