Hi,
Does anyone know the v3 API equivalent to the v1 API "/v1/workflows/{appId}/questions"? I am attempting to migrate my calls to v3 and utilized the v1 questions call frequently.
Thanks
Solved! Go to Solution.
@maisonsteyer you can view the updated endpoints by hovering over the "?" in the Server UI and then clicking API Documentation.
Toggle to the v1 endpoints in the drop down and then click "Explore". This will show you the updated endpoints.
Hi @MatthewO - thank you for your response. I don't think this is what I'm looking for. I am trying to find the v3 equivalent to the v1 endpoint I mentioned above. It is my understanding that once I update to 2022.1 and forward, I will no longer be able to utilize the v1 endpoints. If this is the case, then I will need to find an equivalent.
@maisonsteyer the API base URL can be found in the Server System Settings.
Using the example above, the path to the endpoint you mentioned would be:
http://localhost/webapi/v1/workflows/{appId}/questions
@MatthewO I understand what the version 1 endpoint is. I am trying to figure out what the endpoint for v3 is. My understanding is that I won't be able to use the v1 endpoints once I update to 2022.1
@maisonsteyer the v1 and v2 endpoints are still supported on 2022.1. The only revision is that the paths have been updated as shown above.
@MatthewO Thank you! That was the bit of information that I needed. I appreciate your responses.
@MatthewO Is it the case that you can use the v1 API (using the new endpoint with a bearer token) to download all workflows? I'm finding that only my own workflow are authorized to download and previously (with the old v1 endpoint) I could download everything.
@PhilipMannering the v1 endpoints are supported with the Oauth2.0 bearer token beginning in 2021.4. One thing I would check is that you are using the admin API credentials and not the subscription credential. If you are on version 2022.3, I believe there is only one set of credentials when the API is enabled for a user and this differentiation occurs based on your Server role. The screenshot below is from the 2022.3 release notes. This is not something I have explored myself, but it appears that as of the latest release the behavior might be expected if you are not a Server Curator.