Automation

Defines an automation in Automation Studio.

To modify or delete an automation, you must have the Automation | Automations | Write permission. To start an automation, you must have the Automation | Automations | Execute permission.

NameData TypeDescription
AutomationInstanceIDStringThe unique ID for a specific run (instance) of an automation.
AutomationSourceAutomationSource objectAn object that identifies the source of the automation.
AutomationTasksArray of AutomationTask objectsAn array of objects. Each object specifies a task in the automation.
AutomationTypeStringThe type of automation.
ClientClientID objectDefines which account owns the automation.
CorrelationIDStringIdentifies calls involved in a specific asynchronous process.
CreatedByLongThe ID of the user who created the automation.
CreatedDateDateTimeThe date and time when the object was created. Read-only.
CustomerKeyStringA user-supplied unique identifier for the automation, sometimes referred to as the external key.
DescriptionStringA description of the object.
IDIntegerA unique ID for the object.
InteractionObjectIDStringA unique ID for activities within the asynchronous process of the overall conversation or program.
IsActiveBooleanSpecifies whether the object is active.
KeywordStringNot used.
LastSavedByLongThe ID of the user who last saved the automation.
ModifiedByLongThe ID of the user who last modified the automation.
ModifiedDateStringThe date and time when the object was last modified. Read-only.
NameStringThe name of the automation.
NewObjectIDStringThe unique ID of the newly created automation object. This value is used in later API calls (Retrieve, Perform, Update, Pause) to refer to that specific automation.
NotificationsArray of AutomationNotification objectsAn array of objects. Each object represents a notification to send when the automation completes.
ObjectIDStringA unique ID for the object.
ObjectStateStringNot used.
OwnerOwner objectDescribes the account ownership of a subscriber in an account that is managed on your behalf.
PartnerKeyStringA unique identifier for an object, provided by a partner. This property can only be accessed by using the API.
PartnerPropertiesArray of APIProperty objectsA collection of metadata supplied by the client and stored by the system. This property can only be accessed by using the API.
ProgramIDStringAn identifier for the automation. Read-only.
ScheduleScheduleDefinition objectAn object that represents the schedule for the automation.
ScheduledTimeDateTimeThe date and time when the automation is scheduled for publishing. Specify the value in ISO 8601 format with UTC time or a timezone offset. The specified time can be up to 30 days in the future.
StatusIntegerA code that indicates the status of the automation. See Status Codes for more information.

The values of the ScheduledTime and CreatedDate properties are always shown as "0001-01-01T00:00:00.000".

The Status property can contain the values in this table.

CodeDescription
-1The automation failed.
0The automation failed while being built.
1The automation is being built.
2The automation is ready to start.
3The automation is running.
4The automation has been paused.
5The automation has been stopped.
6The automation is scheduled.
7The automation is waiting for a trigger.
8The trigger for the automation is inactive.