This is my test so far to trigger new training via Rasa X using the endpoints examined from the web interface, so Rasa X will know about the new model (rather than via rasa command line).
in Python (URL and PASSWORD replaced):
import requests, json
data = { 'username' : 'me', 'password' : '{PASSWORD}' }
r = requests.post('https://URL/api/auth', data=json.dumps(data), verify=False)
token = json.loads(r.text)['access_token']
print(token)
headers = { 'Authorization' : 'Bearer ' + token }
r = requests.get('URL/api/projects/default/models/jobs', headers=headers, verify=False)
j = json.loads(r.text)
print(json.dumps(j, indent=4))
However, I receive this response:
{
"version": "0.39.2",
"status": "failure",
"message": "Model 'None' not found for project 'default'.",
"reason": "ModelNotFound",
"details": {},
"help": null,
"code": 404
}
Hints appreciated!