Manage APIs in an API Collection Task
Note API collection task setup and configuration are available only to those users who belong to the Edifecs account.
You can add and manage APIs to streamline and automate partner onboarding by adding API Collection tasks to your programs.
Add an API
To add a new API Collection task with a new API:
- Click the program name or create a new program on the Programs In Design page.
- Under the Program Setup tab, click Add Task, and then select API Collection from the drop-down menu.
- On the Manage Tasks page, in the section Details, provide the following:
- Name (Required)
- Description (Optional)
- To Be Executed By (Required): Partners, Any Internal User or Select Internal Users
- Internal Reviewer (Required): None, Any Program Owner, Any Internal User or Select Internal Users
Note You have an option to make this task mandatory.
- In the section Content Configuration, click Add API to configure your APIs to be executed to streamline and automate partner onboarding.
- Provide the following:
- Click Add.
Note You can add multiple APIs to the same API Collection task. Use the arrow buttons ( ) next to the APIs to manage the order in which they must be executed.
- In the section Post Execution, provide messages that will be displayed once the task is fully executed and environment variables.
Note If all the configured APIs in the API Collection task are executed successfully, you, as a partner user, can submit or complete the task automatically on condition that the task does not require review.
- Click Save or Save and Close.
Edit an API
To edit an API from an API Collection task:
- Click the program name on the Programs In Design page.
-Or- On the Active Programs tab of the Programs page, click the program name you require.
- Under the Program Setup tab, in the section Tasks, click Manage Tasks.
- From the list of found tasks, click the API Collection task containing the API you want to edit.
- In the section Content Configuration, from the list of available APIs, click Edit (
) for the API you need.
- Update the API configuration and then click Save.
Delete an API
To delete an API from an API Collection task:
- Click the program name on the Programs In Design page.
- Under the Program Setup tab, in the section Tasks, click Manage Tasks.
- From the list of found tasks, click the API Collection task containing the API you want to delete.
- In the section Content Configuration, from the list of available APIs, click Delete (
) for the API you need.
- Confirm the operation and then click Save.
Note You can also delete the whole API Collection task by clicking Delete on the right side of the API Collection configuration page.
Get API Execution Logs
To download an API execution log from an API Collection task:
- Click the program name on the Active Programs tab of the Programs page.
- Go to the Tasks tab.
- In the Partner Execution Summary section, in the task details, next to the status of the API, under Logs, click
to download the execution log file.
Note Logs become available after the API task has been executed by any user (even by a partner) and only when the API task status is Success, Failed, or In Progress.
View/Review Execution Details
You can view/review the execution details in the API collections task.
To view/review the execution details:
- Click the program name on the Active Programs tab of the Programs page.
- On the Tasks tab, select an API collection task the details of which you want to view or review.
- In the Partner Execution Summary section, view or review the following task details:
- The task name
- The task current status
- Enrolled partners for a certain task
- Logs
- Description
- Execution time
- The executioner name
Import an API configuration
You can import API configurations (the Content Configuration) as files in the JSON format to view and use all the imported APIs and their post execution variables.
Note You can import API configurations till a certain program is published. Once the program is published, you can import only newly added API tasks to the program.
Export an API configuration
You can export an API configuration (the Content Configuration) with the post-task execution variables configured for each API as a file in the JSON format from an API collection task.
System Variables
You, as a health plan administrator or a program owner, can use the system variables to configure the APIs. These system variables can be used to fetch a logged-in user token or the account ID of the logged-in user who executes the API task.
- ${system.loggedInUserToken}: a macro to get a user token of the user who executes the task.
- ${system.loggedInAccountId}: a macro to get the Account ID of the user who executes the task.
|
|