action files_get_automations_id { label: "Show Automation" description: "Show Automation" provider: files method: GET path: "/automations/{id}" encoding: json input: { type: "object" properties: { id: { type: "integer" format: "int32" } } required: ["id"] additionalProperties: false } output: { type: "object" description: "List Automations" properties: { automation: { type: "string" description: "Automation type" enum: ["create_folder", "request_file", "request_move", "copy_newest_file", "delete_file", "copy_file", "move_file", "as2_send", "run_sync"] } deleted: { type: "boolean" description: "Indicates if the automation has been deleted." } description: { type: "string" description: "Description for the this Automation." } destination_replace_from: { type: "string" description: "If set, this string in the destination path will be replaced with the value in `destination_replace_to`." } destination_replace_to: { type: "string" description: "If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here." } destinations: { type: "array" description: "Destination Path" items: { type: "string" } } disabled: { type: "boolean" description: "If true, this automation will not run." } group_ids: { type: "array" description: "IDs of Groups for the Automation (i.e. who to Request File from)" items: { type: "integer" format: "int32" } } id: { type: "integer" format: "int32" description: "Automation ID" } interval: { type: "string" description: "If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`" } last_modified_at: { type: "string" format: "date-time" description: "Time when automation was last modified. Does not change for name or description updates." } name: { type: "string" description: "Name for this automation." } path: { type: "string" description: "Path on which this Automation runs. Supports globs." } schedule: { type: "object" description: "If trigger is `custom_schedule`, Custom schedule description for when the automation should be run." } source: { type: "string" description: "Source Path" } sync_ids: { type: "array" description: "IDs of remote sync folder behaviors to run by this Automation" items: { type: "integer" format: "int32" } } trigger: { type: "string" description: "How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`." enum: ["realtime", "daily", "custom_schedule", "webhook", "email", "action"] } trigger_actions: { type: "array" description: "If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy" items: { type: "string" } } user_id: { type: "integer" format: "int32" description: "User ID of the Automation's creator." } user_ids: { type: "array" description: "IDs of Users for the Automation (i.e. who to Request File from)" items: { type: "integer" format: "int32" } } value: { type: "object" description: "A Hash of attributes specific to the automation type." } webhook_url: { type: "string" description: "If trigger is `webhook`, this is the URL of the webhook to trigger the Automation." } } } }