Skip to navigation

Clone automation

Clone an Automation. Its triggers are copied through Trigger Service, each with a new id and a name that ends with the same ’ - Cloned <date>’ as the clone’s default name. An API trigger is copied disabled, on the route name of the original, which is not checked for other triggers that have it. A schedule that belongs to a Service is not copied. A trigger that cannot be copied does not stop the others and does not fail the request: the response is a success, and metadata.errors names each trigger that was not copied with the reason.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

automation
idstringOptionalformat: "^[0-9a-f]{24}$"
A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
namestring or nullOptional>=1 character
An optional name to use for the clone.

Response

The result of the clone operation.
messagestring

A human-readable message summarizing the result of the operation

dataany
Any successfully retrieved information related to the request.
metadataobject

Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.

Errors

500
Internal Server Error