arazzo: 1.0.1
info:
title: Mailchimp Find and Pause an Automation
summary: List classic automations, pick the first, and pause all its emails.
description: >-
A find-then-act flow that halts a running automation. The workflow lists the
account's automations and branches on whether any exist: when at least one
automation is found it pauses all emails in the first automation, and when
none exist it ends without acting. The automation (workflow) id from the
list step is passed straight into the pause action. Authentication uses HTTP
Basic auth with any username and your Mailchimp API key as the password.
version: 1.0.0
x-realizes-capability-ids:
- BC-400.60
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-400.60
capability_name: Digital Marketing Management
spec: mailchimp-automations-api-openapi.yml
confidence: 0.8
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: automationsApi
url: ../openapi/mailchimp-automations-api-openapi.yml
type: openapi
workflows:
- workflowId: find-and-pause-automation
summary: Find the first automation and pause all its emails.
description: >-
Lists automations and pauses all emails in the first one found; ends if
there are none.
inputs:
type: object
properties:
count:
type: integer
description: Number of automations to request when listing.
default: 10
steps:
- stepId: listAutomations
description: List the classic automation workflows on the account.
operationId: getAutomations
parameters:
- name: count
in: query
value: $inputs.count
successCriteria:
- condition: $statusCode == 200
outputs:
firstWorkflowId: $response.body#/automations/0/id
onSuccess:
- name: automationFound
type: goto
stepId: pauseEmails
criteria:
- context: $response.body
condition: $.automations.length > 0
type: jsonpath
- name: noAutomations
type: end
criteria:
- context: $response.body
condition: $.automations.length == 0
type: jsonpath
- stepId: pauseEmails
description: >-
Pause all emails in the first automation found. Returns a 204 empty
response on success.
operationId: postAutomationsIdActionsPauseAllEmails
parameters:
- name: workflow_id
in: path
value: $steps.listAutomations.outputs.firstWorkflowId
successCriteria:
- condition: $statusCode == 204
outputs:
pausedWorkflowId: $steps.listAutomations.outputs.firstWorkflowId
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.