Support > Forums > OpenBots Studio > "Endpoint" parameter when calling an API (v1.7)

"Endpoint" parameter when calling an API (v1.7)

David Santos

  • Reporter
  • Calender Icon December 11,2021 at 9:43 AM

Hi Openbots experts. The new version of the command to call an API in v1.7 does not have the "Endpoint" parameter. Can you provide details of how this new version of the script to call an API should be configured? Thanks!

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Lakshmi Sukumar

  • Participant
  • Calender Icon December 13,2021 at 3:18 PM

Hi David,

We did some refactoring to the API commands in version 1.7. As you mention, in previous versions we have the URL and Endpoint values as 2 different fields. In the current version, you would merge the 2 and use this as the URL. This was done mostly to follow general guidelines that will be more familiar to our users who are accustomed to using tools such as Postman and Swagger UI.

For example:

In v1.6 - URL: "https://api.yelp.com/v3/" Endpoint: "/businesses/search"

In v1.7.0 - URL: "https://api.yelp.com/v3/businesses/search/"

Hope this helps!

You are not authorized to reply, please click here to login and add your reply to this topic.