To run a model, you must provide an Authorization header containing access token in the and also a Content-Type header with the value
The run endpoint accepts a
POST request with parameters in the body of the request to control how the run is executed. The only required fields are the model name and your group name, which is assigned at account creation and defaults to your email address. If you run with only these two parameters, the model runs without connecting to any Eggplant Functional scripts and only generates a path through the model.
If you want to connect to an Eggplant Functional suite, you must use the agent to establish that connection. This allows the Eggplant AI engine to connect to your Eggplant Functional scripts and to execute them. Use the alias you provided in the agent as the
agentName parameter in your REST API run request, and enter the path to your Eggplant Functional suite in the
suiteLocation parameter. These two parameters are required to connect to Eggplant Functional. Other options allow you to modify things like the number of iterations, logfile name, log directory, seed number, maximum number of actions, and replay flag. The
directedTest parameter can be used to run specific test cases.
POST -> http://localhost:8000/api/run
|Bad request||The required parameters were not sent|
|Unauthorized||The access token was not valid|
|Forbidden||Not enough available concurrent user licenses|
|Forbidden||The current user doesn’t have access to the model requested|
Response Body JSON
|Integer||The ID of the running process.|