5. Navigate to Cloud Studio and mark your scenario as a skill
to expose the input and output parameters.
6. Create an API trigger after the successful deployment of the package.A pop up appears to enter the name of the API trigger and the scenario name.Click on Create.Click on Copy and the API trigger is created successfully.
Enable the package to test the API trigger.7.Test API Trigger in POSTMAN.
Ask your administrator to provide the following information
Client credentials.Access Token URL: Authentication URL + /oauth/token at the end.
Create a POST request in POSTMAN with the below mapping.
Go to the authentication tab, select OAuth 2.0.
Click “Get New Access Token” and enter the information from the first point (Client ID, Client Credentials and Access Token URL) in the dialog.
You need to add /oauth/token at the end of the Access Token URL.
Click on Use Token. This token is used to access the API trigger.
Once the Use token is clicked an extra value called authorization is added to the header.Enter the body of the request as below.
Enter the value for the input parameters . Click on Send to get the output.
The output triggers the running instance in the Cloud factory.
Open the Desktop Agent to run the project in unattended mode.The output of the API trigger can be seen in JOBS after successful execution.
The API trigger is tested and works perfectly from POSTMAN.
The endpoint URL is ready and can be consumed in any integration scenario like CAI etc.