{
"title": "automation",
"properties": {
"id": {
"description": "The id of the Automation to be cloned.",
"$ref": "common#/definitions/ObjectIdLikeString"
},
"name": {
"description": "An optional name to use for the clone.",
"oneOf": [
{
"type": "null"
},
{
"$ref": "common#/definitions/name"
}
]
}
}
}
Return
DetailsExampleSchema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": "mollit non ut qui et",
"created": "1968-01-27T11:57:03.958Z",
"lastUpdatedBy": "nulla nostrud",
"lastUpdated": "2022-01-24T08:09:31.592Z",
"_id": "032dc475b001f3049fcb9ef5",
"gbac": {
"write": [
"a13ed542042042fd91600fc0",
"5e8f04517bde2e6aff80f488"
],
"read": [
"0226429ec8e4d93a3ddff831",
"63ef77df8dfbd0486188459a",
"2167e2cec0739d366212a1e3",
"2c00f647a486ab74cbadd569",
"3b5d75e86fe4b6e285ab4d13"
]
},
"componentId": "fa5Ed47B-9bE0-82dc-cA71-fF010237aBe4"
},
"metadata": {
"automaticChanges": [
"mollit Ut commodo voluptate ex",
"mollit non ut adipisicing"
],
"triggerCloneResults": {
"message": "fugiat ad",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "e910d6361948c8497b3375d6",
"lastExecuted": null,
"createdBy": "eu",
"created": "1955-07-27T02:19:11.566Z",
"lastUpdatedBy": null,
"lastUpdated": "1976-11-08T03:26:16.082Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "9336e17334b91d8113c6da45",
"formId": "35901c7f99448d386df52dd6",
"migrationVersion": 48759054,
"formSchemaHash": null
},
"automaticChanges": [
"sint eu veniam ut magna",
"ea nisi consequat sit",
"ad cupidatat eiusmod",
"enim",
"ex sunt reprehenderit dolore adipisicing"
]
}
]
}
}
}