This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
The following error may be encountered when trying to enable REST API endpoint:
“Could not refresh services, try again?”
The issue could be caused by an incorrect value for HostName and/or HostPort in web.config of the Rest Service Api located in [Install Folder]\WebServices\Api\Workflow\V1 or [Install Folder]\WebServices\Api\Workflow\Preview depending on which API Version is selected.
In this example, the value of the HostPort is incorrect. Correcting the value of HostPort to the correct port for your environment will resolve the issue.