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": "DFaFcFdf86f8417e769a521c",
"workflowId": "cillum ut occaecat ex",
"createdBy": "cE4dC26daF09dE969d7fE10E",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "2fe488Fef5CfcEE2bBAAeC25",
"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": "b7a382B8124d5eA88EfE8492",
"workflowId": "minim nulla",
"createdBy": "59A1BCe1bEf44AEdc7187DcE",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "e3A6288af256f13cfF2C7B2B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"pkgVersion": "3.40.3"
},
"edit": "minim esse ex"
}
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"
]
}