Simulation Run Plan
Update a run plan
Changed onUpdates an existing simulation run plan by its ID.
put/v1/simulation/plan/{planId}
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/simulation/plan/{planId}
- AuthHTTP bearer
Path parameters
planIdstring uuid required
The ID of the run plan to update
Request body
Example request
{
"scenarios": [
{
"variables": {
"customerName": "John Doe",
"appointmentDate": "2024-02-15"
}
}
],
"flows": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"happyPath": true,
"edgeCases": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"variables": {
"tier": "premium"
}
}
]
}
],
"metrics": [
{
"minPassRate": 80
}
],
"comparisonValues": [
"NONE",
{
"value": "OFFICE",
"backgroundNoiseVolume": 0.6
},
{
"value": "DRIVING",
"backgroundNoiseVolume": 0.7
},
{
"value": "DRIVING",
"backgroundNoiseVolume": 1
}
],
"notifications": {
"email": {
"enabled": true,
"recipients": []
},
"slack": [
{
"channelId": "C07ABCDEF12",
"channelName": "qa-reports"
}
]
}
}Response
The updated run plan
Example response
{
"data": {
"template": "accent-handling",
"scenarios": [
{
"variables": {
"customerName": "John Doe",
"appointmentDate": "2024-02-15"
}
}
],
"flows": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"happyPath": true,
"edgeCases": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"variables": {
"tier": "premium"
}
}
]
}
]
}
}Changes
- info
added the new optional request property
- info
added the required property
/to the response with the status
- info
- breaking
the
/request property type changed fromstringto no type - info
added
subschema #1to the/request propertyanyOflist - info
added the required property
/to the response with the status
- breaking