Summary
Creates a new workflow test document for a workflow.
Description
Creates a new workflow test document for a workflow.
Route
POST /automation-studio/:workflowId/tests
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflowId |
string |
yes |
ObjectId specifying a workflow entity. |
workflowTest |
object |
yes |
Workflow test entity to create. |
Copied to Clipboard
{
"workflowTest": {
"name": "test",
"underrides": [],
"_id": "752890aEBAa5DEA0735Deb2a",
"workflowId": "aliquip ut elit",
"createdBy": "Aee6f2fc7dbEAbfbE884DF9e",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "eccab41a516B77609FDE4D3F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"pkgVersion": "3.40.3"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflowTest": {
"title": "workflowTest",
"$ref": "workflowTest"
}
},
"required": [
"workflowTest"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Created workflow test and associated edit URI. |
Copied to Clipboard
{
"created": {
"name": "test",
"underrides": [],
"_id": "D5eea0B36EDfd52bc3476cdd",
"workflowId": "deserunt dolore cillum quis",
"createdBy": "bE6F70E554D39AFdB25aA2Ad",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "C1A1a773e53e8FE21e16Bd9D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"pkgVersion": "3.40.3"
},
"edit": "Excepteur dolore deserunt dolor irure"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"description": "Created workflow test and associated edit URI.",
"properties": {
"created": {
"$ref": "workflowTest"
},
"edit": {
"type": "string",
"description": "URI to the edit page for the newly created template."
}
},
"required": [
"created",
"edit"
]
}