How to specify action endpoint when training via API?

I send training data to /model/train endpoint for training. I specify action endpoint as follows:

action_endpoint:
  url: "http://localhost:5055/webhook"

However, when I start chatting, I get the following error:

rasa.shared.exceptions.RasaException: Failed to execute custom action 'action_time' because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. https://rasa.com/docs/rasa/custom-actions

Is it possible to specify action endpoint when training via the HTTP API? If not, what alternatives do I have? To be clear, I am building a frontend, so training has to be done via the API.

You cannot specify the action endpoint when training via the Rasa Open Source API. Instead, configure the action endpoint in your endpoints.yml file as follows:

action_endpoint:
  url: "http://localhost:5055/webhook"

This will ensure that custom actions are recognized during conversations when using the API for training.