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": "fugiat in"
}
}
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": "0bEacfD6bDe4dAfAaabfd13F",
"workflowId": "officia eu tempor",
"createdBy": "7F4Ea2Ef7FB9fB5C6EdA8c3b",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1fFF2c24EcA9416D1913cDaF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"pkgVersion": "3.40.3"
},
"edit": "Lorem magna 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"
]
}