Summary
Replaces a workflow test document for a workflow.
Description
Replaces a workflow test document for a workflow.
Route
PUT /automation-studio/:workflowId/tests/:id
Roles
admin
apiwrite
designer
Parameters
Details Example Schema
Name
Type
Required
Description
workflowId
string
yes
ObjectId specifying a workflow entity.
id
string
yes
Workflow test id.
update
object
yes
Complete workflow test definition to replace the existing workflow test document with. May not contain fields '_id', 'workflowId', 'created', 'createdBy', 'lastUpdated', or 'lastUpdatedBy'.
Copied to Clipboard
{
"update": {
"name": "test",
"underrides": [],
"workflowId": "mollit"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"update": {
"title": "update",
"description": "Complete workflow test definition to replace the existing workflow test document with. May not contain fields '_id', 'workflowId, 'created', 'createdBy', 'lastUpdated', or 'lastUpdatedBy'.",
"$ref": "workflowTestUpdate"
}
},
"required": [
"update"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
response
object
Response object.
Copied to Clipboard
{
"updated": {
"name": "test",
"underrides": [],
"_id": "AEfa33cd66f7ecbdc0Ff8B19",
"workflowId": "aliqua ad",
"createdBy": "984b2D2b92e3ceFCB2Bf64bB",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4E716AD6ad44CF6466175A62",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"pkgVersion": "3.40.3"
},
"edit": "consequat nulla in"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"updated": {
"description": "Workflow test document after applying the update.",
"$ref": "workflowTest"
},
"edit": {
"type": "string",
"description": "URI to the edit page for the updated workflow test."
}
},
"required": [
"updated",
"edit"
]
}