Clone this Workflow
workflows_post_clone(id, clone_schedule = NULL, clone_notifications = NULL)
id | integer required. The ID for the workflow. |
---|---|
clone_schedule | boolean optional. If true, also copy the schedule to the new workflow. |
clone_notifications | boolean optional. If true, also copy the notifications to the new workflow. |
A list containing the following elements:
integer, The ID for this workflow.
string, The name of this workflow.
string, A description of the workflow.
string, The definition of the workflow in YAML format. Must not be specified if `fromJobChain` is specified.
boolean, The validity of the workflow definition.
string, The errors encountered when validating the workflow definition.
string, The file id for the s3 file containing the workflow configuration.
list, A list containing the following elements:
id integer, The ID of this user.
name string, This user's name.
username string, This user's username.
initials string, This user's initials.
online boolean, Whether this user is online.
string, The state of the workflow. State is "running" if any execution is running, otherwise reflects most recent execution state.
list, A list containing the following elements:
scheduled boolean, If the item is scheduled.
scheduledDays array, Day based on numeric value starting at 0 for Sunday.
scheduledHours array, Hours of the day it is scheduled on.
scheduledMinutes array, Minutes of the day it is scheduled on.
scheduledRunsPerHour integer, Alternative to scheduled minutes, number of times to run per hour.
boolean, Whether the workflow can execute when already running.
string, The time zone of this workflow.
string, The time of the next scheduled execution.
list, A list containing the following elements:
urls array, URLs to receive a POST request at job completion
successEmailSubject string, Custom subject line for success e-mail.
successEmailBody string, Custom body text for success e-mail, written in Markdown.
successEmailAddresses array, Addresses to notify by e-mail when the job completes successfully.
failureEmailAddresses array, Addresses to notify by e-mail when the job fails.
stallWarningMinutes integer, Stall warning emails will be sent after this amount of minutes.
successOn boolean, If success email notifications are on
failureOn boolean, If failure email notifications are on
string, The archival status of the requested item(s).
boolean, The hidden status of the item.
string,
string,