A session token from subscriber login, used by subscriber.dev's own apps. Requests about an environment also need its ID in the x-environment-id header. From your own code, use an API key.
Link to edit this workflow's emails in the web editor. Share it when someone wants to tweak the copy or preview an email.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"subscriber.dev","colors":{"primary":"#000000","light":"#EDEDED","dark":"#161616"},"logo":{"light":"https://mintcdn.com/open-engineering/FtDwJKEB28O2B7rG/logo-light.svg?fit=max\u0026auto=format\u0026n=FtDwJKEB28O2B7rG\u0026q=85\u0026s=048dcffd502c6c603eb9b144c77aba02","dark":"https://mintcdn.com/open-engineering/FtDwJKEB28O2B7rG/logo-dark.svg?fit=max\u0026auto=format\u0026n=FtDwJKEB28O2B7rG\u0026q=85\u0026s=5424cf55dfb0fd17c02175285780ccbc","href":"https://subscriber.dev"},"favicon":"https://mintcdn.com/open-engineering/FtDwJKEB28O2B7rG/favicon.svg?fit=max\u0026auto=format\u0026n=FtDwJKEB28O2B7rG\u0026q=85\u0026s=b79a551fb46815e7e68ffcfa2298ccc5","navbar":{"links":[{"href":"https://github.com/kanbn/subscriber.dev","label":"GitHub"}],"primary":{"type":"button","label":"Sign in","href":"https://subscriber.dev/auth"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"open-engineering","hasAudioNarration":false,"actualSubdomain":"open-engineering","customDomains":["docs.subscriber.dev"],"gitSource":{"type":"github","owner":"kanbn","repo":"subscriber.dev","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae43c244060152f8a9840a3"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae4445c0d452b7e616e98b4","collectionId":"25aaffca-635e-4aef-9964-74b933de135f","liveDeploymentHistoryId":"6ae4445c0d452b7e616e98b4","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4763535628143bec2a8d9","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"API reference","count":57},{"language":"default","tag":"Integrations","count":12},{"language":"default","tag":"Subscribers","count":10},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Broadcasts","count":8},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Users","count":5},{"language":"default","tag":"API keys","count":4},{"language":"default","tag":"Tools","count":3},{"language":"default","tag":"Billing","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{font-size:14px}#page-title{font-size:1.75rem}.mdx-content h2{font-size:1.25rem}.mdx-content h3{font-size:1.1rem}"}],"page":{"pagePath":"api-reference/workflows/update-a-workflow","slug":"/api-reference/workflows/update-a-workflow","pageMetadata":{"title":"Update a workflow","description":"Updates workflow fields. If `steps` is provided, it replaces ALL existing steps; likewise for `triggers` and `exitConditions`.","deprecated":null,"version":null,"openapi":"/openapi.json patch /workflows/{workflowId}","href":"/api-reference/workflows/update-a-workflow","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Updates workflow fields. If \", _jsx(_components.code, {\n children: \"steps\"\n }), \" is provided, it replaces ALL existing steps; likewise for \", _jsx(_components.code, {\n children: \"triggers\"\n }), \" and \", _jsx(_components.code, {\n children: \"exitConditions\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a workflow","description":"Updates workflow fields. If `steps` is provided, it replaces ALL existing steps; likewise for `triggers` and `exitConditions`.","deprecated":null,"version":null,"openapi":"/openapi.json patch /workflows/{workflowId}","href":"/api-reference/workflows/update-a-workflow","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Updates workflow fields. If `steps` is provided, it replaces ALL existing steps; likewise for `triggers` and `exitConditions`.","operationId":"updateWorkflow","parameters":["75c9742a-5283-429e-acbf-635174bf7e83"],"requestBody":"ed0ef8c4-f89b-4d6d-b0fb-c63c068007bf","responses":{"200":"7f7da99a-1825-43a5-b952-6900907495eb","401":"95cad3c5-080a-46b2-b5a6-a552fcc44902","404":"71a0d3d2-c2cf-4139-9334-4901221ee696","429":"53291985-adc4-480b-9bec-22d7d9d54593"},"security":["4bd26df4-d4f9-42ba-87a7-efa8d3c91529","97d6beb3-214a-4de1-852c-ba475bbeebba"],"summary":"Update a workflow","tags":["Workflows"],"method":"patch","type":"path","servers":["192ed7c9-ec81-46ac-9b49-45b145bb4db6"],"path":"/workflows/{workflowId}","baseUrlOptions":["https://api.subscriber.dev"],"title":"Update a workflow","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"75c9742a-5283-429e-acbf-635174bf7e83":{"name":"workflowId","required":true,"in":"path","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"key","typeLabel":"string"},"name":{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","maxLength":2000,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","enum":["active","paused"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"channels":{"description":"Per-channel settings. Each channel you include replaces that channel's settings; channels you leave out are unchanged.","type":"object","properties":{"email":{"oneOf":[{"type":"object","description":"Replaces the workflow's email settings. Null goes back to the email integration's.","properties":{"fromName":{"description":"Sender name for every email in this workflow, e.g. \"Jane from Acme\". Defaults to the email integration's fromName. The from address always comes from the integration.","type":"string","maxLength":255,"uniqueKey":"channels.email.oneOf.0.fromName","typeLabel":"string"},"replyTo":{"description":"Where replies to this workflow's emails go. Defaults to the email integration's replyTo, or the from address.","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","uniqueKey":"channels.email.oneOf.0.replyTo","typeLabel":"string\u003cemail>"}},"uniqueKey":"channels.email.oneOf.0","typeLabel":"object"},{"type":"null","description":"Replaces the workflow's email settings. Null goes back to the email integration's.","uniqueKey":"channels.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"channels.email","typeLabel":"object | null"}},"uniqueKey":"channels","typeLabel":"object"},"steps":{"description":"If provided, replaces ALL existing steps for this workflow.","minItems":1,"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","required":["type","subject","body"],"properties":{"type":{"type":"string","const":"email","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.type","typeLabel":"string"},"subject":{"type":"string","minLength":1,"maxLength":500,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.subject","typeLabel":"string"},"body":{"type":"string","minLength":1,"description":"HTML (or plain text) email body, rendered as a Liquid template (https://liquidjs.com). Supports {{ subscriber.firstName }} etc. interpolation from subscriber fields and custom attributes (an attribute called company is {{ subscriber.company }}), and trigger payload fields at the top level (payload {\"plan\": \"pro\"} is {{ plan }}), plus {{unsubscribeUrl}} for this subscriber's unsubscribe link, and {% if %}/{% else %}/{% endif %} conditionals, e.g. {% if subscriber.firstName %}Hey {{ subscriber.firstName }}{% else %}Hey there{% endif %}. With the default layout, write just the content (\u003cp>, \u003ch1>, \u003ch2>, \u003ca>, \u003cul>, \u003cimg>, \u003chr>, \u003cblockquote>…) — fonts, spacing and the centred column are applied for you. Add class=\"button\" to a link to render it as a call-to-action button.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.body","typeLabel":"string"},"delayMs":{"default":0,"description":"Milliseconds to wait after the previous step (or after trigger, for the first step) before sending this step.","type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"steps.items.[INDEX].oneOf.0.delayMs","typeLabel":"integer"},"layout":{"default":"default","description":"\"default\" wraps the body in a centred, readable layout (system font stack, 600px width, unsubscribe footer). \"none\" sends the body as-is, for bringing your own full HTML template. A body that is already a full HTML document (has \u003chtml> or \u003cbody>) is always sent as-is.","type":"string","enum":["default","none"],"uniqueKey":"steps.items.[INDEX].oneOf.0.layout","typeLabel":"enum\u003cstring>"},"previewText":{"description":"Short summary inboxes show next to the subject. Supports Liquid. Only used with the default layout.","type":"string","maxLength":255,"uniqueKey":"steps.items.[INDEX].oneOf.0.previewText","typeLabel":"string"}},"uniqueKey":"steps.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url","body"],"properties":{"type":{"type":"string","const":"webhook","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.type","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Destination URL the JSON payload is POSTed to.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"},"body":{"type":"string","minLength":1,"description":"JSON payload template, rendered via Liquid (https://liquidjs.com) then POSTed as-is with Content-Type: application/json. e.g. {\"content\": \"{{ subscriber.email | json }} just signed up!\"} for a Discord webhook. Use the `json` filter around interpolated values to keep the result valid JSON.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.body","typeLabel":"string"},"delayMs":{"default":0,"description":"Milliseconds to wait after the previous step (or after trigger, for the first step) before sending this step.","type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"steps.items.[INDEX].oneOf.1.delayMs","typeLabel":"integer"}},"uniqueKey":"steps.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"steps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"steps","typeLabel":"object[]"},"triggers":{"description":"If provided, replaces ALL existing triggers for this workflow. Automation workflows only; each trigger's integration must be connected.","maxItems":50,"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"description":"Connected integration that fires the trigger, e.g. \"stripe\".","isRequired":true,"uniqueKey":"triggers.items.[INDEX].source","typeLabel":"string"},"event":{"type":"string","minLength":1,"maxLength":255,"description":"One of the source's events (see list_trigger_sources), e.g. \"trial_started\", or a raw event type such as \"checkout.session.completed\".","isRequired":true,"uniqueKey":"triggers.items.[INDEX].event","typeLabel":"string"}},"required":["source","event"],"uniqueKey":"triggers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"triggers","typeLabel":"object[]"},"exitConditions":{"description":"If provided, replaces ALL existing exit conditions for this workflow. Each one's integration must be connected.","maxItems":50,"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"description":"Connected integration that fires the trigger, e.g. \"stripe\".","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].source","typeLabel":"string"},"event":{"type":"string","minLength":1,"maxLength":255,"description":"One of the source's events (see list_trigger_sources), e.g. \"trial_started\", or a raw event type such as \"checkout.session.completed\".","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].event","typeLabel":"string"}},"required":["source","event"],"uniqueKey":"exitConditions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"exitConditions","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"key":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","channels":{"email":{"fromName":"\u003cstring>","replyTo":"jsmith@example.com"}},"steps":[{"type":"email","subject":"\u003cstring>","body":"\u003cstring>","delayMs":0,"layout":"default","previewText":"\u003cstring>"}],"triggers":[{"source":"\u003cstring>","event":"\u003cstring>"}],"exitConditions":[{"source":"\u003cstring>","event":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7f7da99a-1825-43a5-b952-6900907495eb":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string","isRequired":true,"uniqueKey":"publicId","typeLabel":"string"},"key":{"type":"string","isRequired":true,"uniqueKey":"key","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","enum":["active","paused"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["automation","broadcast"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"channels":{"type":"object","properties":{"email":{"type":"object","properties":{"fromName":{"type":"string","uniqueKey":"channels.email.fromName","typeLabel":"string"},"replyTo":{"type":"string","uniqueKey":"channels.email.replyTo","typeLabel":"string"}},"uniqueKey":"channels.email","typeLabel":"object"}},"description":"Settings for each channel this workflow sends on.","isRequired":true,"uniqueKey":"channels","typeLabel":"object"},"steps":{"type":"array","items":{"type":"object","properties":{"publicId":{"type":"string","isRequired":true,"uniqueKey":"steps.items.[INDEX].publicId","typeLabel":"string"},"stepOrder":{"type":"number","isRequired":true,"uniqueKey":"steps.items.[INDEX].stepOrder","typeLabel":"number"},"type":{"type":"string","isRequired":true,"uniqueKey":"steps.items.[INDEX].type","typeLabel":"string"},"delayMs":{"type":"number","isRequired":true,"uniqueKey":"steps.items.[INDEX].delayMs","typeLabel":"number"},"subject":{"type":"string","uniqueKey":"steps.items.[INDEX].subject","typeLabel":"string"},"body":{"type":"string","uniqueKey":"steps.items.[INDEX].body","typeLabel":"string"},"layout":{"description":"Email steps only. Steps saved before layouts existed have no value and use \"default\".","type":"string","enum":["default","none"],"uniqueKey":"steps.items.[INDEX].layout","typeLabel":"enum\u003cstring>"},"previewText":{"description":"Email steps only.","type":"string","uniqueKey":"steps.items.[INDEX].previewText","typeLabel":"string"},"url":{"description":"Webhook URL, redacted to origin + last 4 characters since it usually contains a secret. Sending the redacted value back in an update keeps the stored URL.","type":"string","uniqueKey":"steps.items.[INDEX].url","typeLabel":"string"}},"required":["publicId","stepOrder","type","delayMs"],"uniqueKey":"steps.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"steps","typeLabel":"object[]"},"triggers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"description":"Connected integration that fires the trigger, e.g. \"stripe\".","isRequired":true,"uniqueKey":"triggers.items.[INDEX].source","typeLabel":"string"},"event":{"type":"string","minLength":1,"maxLength":255,"description":"One of the source's events (see list_trigger_sources), e.g. \"trial_started\", or a raw event type such as \"checkout.session.completed\".","isRequired":true,"uniqueKey":"triggers.items.[INDEX].event","typeLabel":"string"},"label":{"type":"string","description":"Human-readable name of the event.","isRequired":true,"uniqueKey":"triggers.items.[INDEX].label","typeLabel":"string"},"active":{"type":"boolean","description":"False while the source's integration is disconnected; it resumes once it's reconnected.","isRequired":true,"uniqueKey":"triggers.items.[INDEX].active","typeLabel":"boolean"}},"required":["source","event","label","active"],"uniqueKey":"triggers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"triggers","typeLabel":"object[]"},"exitConditions":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"description":"Connected integration that fires the trigger, e.g. \"stripe\".","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].source","typeLabel":"string"},"event":{"type":"string","minLength":1,"maxLength":255,"description":"One of the source's events (see list_trigger_sources), e.g. \"trial_started\", or a raw event type such as \"checkout.session.completed\".","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].event","typeLabel":"string"},"label":{"type":"string","description":"Human-readable name of the event.","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].label","typeLabel":"string"},"active":{"type":"boolean","description":"False while the source's integration is disconnected; it resumes once it's reconnected.","isRequired":true,"uniqueKey":"exitConditions.items.[INDEX].active","typeLabel":"boolean"}},"required":["source","event","label","active"],"uniqueKey":"exitConditions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"exitConditions","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"editUrl":{"description":"Link to edit this workflow's emails in the web editor. Share it when someone wants to tweak the copy or preview an email.","type":"string","uniqueKey":"editUrl","typeLabel":"string"}},"required":["publicId","key","name","description","status","type","channels","steps","triggers","exitConditions","createdAt","updatedAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"publicId":"\u003cstring>","key":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","status":"active","type":"automation","channels":{"email":{"fromName":"\u003cstring>","replyTo":"\u003cstring>"}},"steps":[{"publicId":"\u003cstring>","stepOrder":123,"type":"\u003cstring>","delayMs":123,"subject":"\u003cstring>","body":"\u003cstring>","layout":"default","previewText":"\u003cstring>","url":"\u003cstring>"}],"triggers":[{"source":"\u003cstring>","event":"\u003cstring>","label":"\u003cstring>","active":true}],"exitConditions":[{"source":"\u003cstring>","event":"\u003cstring>","label":"\u003cstring>","active":true}],"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","editUrl":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"95cad3c5-080a-46b2-b5a6-a552fcc44902":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","example":404,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","example":"Workflow not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","example":"Not Found","uniqueKey":"error","typeLabel":"string"},"errors":{"description":"Which fields failed validation, on a 400.","type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"errors.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"required":["statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"message":"Workflow not found","error":"Not Found","errors":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"71a0d3d2-c2cf-4139-9334-4901221ee696":{"description":"Workflow not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","example":404,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","example":"Workflow not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","example":"Not Found","uniqueKey":"error","typeLabel":"string"},"errors":{"description":"Which fields failed validation, on a 400.","type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"errors.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"required":["statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"message":"Workflow not found","error":"Not Found","errors":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"53291985-adc4-480b-9bec-22d7d9d54593":{"description":"Rate limited. Wait a second and retry.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","example":404,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"message":{"type":"string","example":"Workflow not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","example":"Not Found","uniqueKey":"error","typeLabel":"string"},"errors":{"description":"Which fields failed validation, on a 400.","type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"errors.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"errors.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"required":["statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"message":"Workflow not found","error":"Not Found","errors":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"4bd26df4-d4f9-42ba-87a7-efa8d3c91529":{"bearer":{"scheme":"bearer","type":"http","description":"A session token from `subscriber login`, used by subscriber.dev's own apps. Requests about an environment also need its ID in the `x-environment-id` header. From your own code, use an API key.","scopes":[],"schemeName":"bearer"}},"97d6beb3-214a-4de1-852c-ba475bbeebba":{"api-key":{"type":"apiKey","in":"header","name":"X-API-Key","description":"An environment API key. Keep it on your server.","scopes":["workflows:write"],"schemeName":"api-key"}}},"servers":{"192ed7c9-ec81-46ac-9b49-45b145bb4db6":{"url":"https://api.subscriber.dev","description":"Cloud"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","type":"http","description":"A session token from `subscriber login`, used by subscriber.dev's own apps. Requests about an environment also need its ID in the `x-environment-id` header. From your own code, use an API key.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A session token from `subscriber login`, used by subscriber.dev's own apps. Requests about an environment also need its ID in the `x-environment-id` header. From your own code, use an API key.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"An environment API key. Keep it on your server.","scopes":["workflows:write"],"schemeName":"api-key"},"schema":{"title":"X-API-Key","type":"string","description":"An environment API key. Keep it on your server.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api-key","name":"X-API-Key"}],"title":"api-key"}]},"originalFileLocation":"openapi.json"},"subdomain":"open-engineering","siteName":"subscriber.dev","title":"Update a workflow - subscriber.dev","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T06:45:05.587Z","originalFileLocation":"api-reference/workflows/update-a-workflow.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Updates workflow fields. If steps is provided, it replaces ALL existing steps; likewise for triggers and exitConditions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"subscriber.dev\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a workflow - subscriber.dev\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates workflow fields. If steps is provided, it replaces ALL existing steps; likewise for triggers and exitConditions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"subscriber.dev\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://open-engineering.mintlify.app/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Update+a+workflow\u0026amp;description=Updates+workflow+fields.+If+%60steps%60+is+provided%2C+it+replaces+ALL+existing+steps%3B+likewise+for+%60triggers%60+and+%60exitConditions%60.\u0026amp;theme=5aa4f509b9d72c26eae09b6d\u0026amp;signature=5d1ed7cd7af95b0731ce9b73279c43adc2c034bcd4a37818e3ced75286c81d8e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a workflow - subscriber.dev\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates workflow fields. If steps is provided, it replaces ALL existing steps; likewise for triggers and exitConditions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://open-engineering.mintlify.app/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Update+a+workflow\u0026amp;description=Updates+workflow+fields.+If+%60steps%60+is+provided%2C+it+replaces+ALL+existing+steps%3B+likewise+for+%60triggers%60+and+%60exitConditions%60.\u0026amp;theme=5aa4f509b9d72c26eae09b6d\u0026amp;signature=5d1ed7cd7af95b0731ce9b73279c43adc2c034bcd4a37818e3ced75286c81d8e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/open-engineering/pBGEdOzwhH8t_4vB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"subscriber.dev\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/workflows/update-a-workflow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.subscriber.dev/#organization\",\"name\":\"subscriber.dev\",\"url\":\"https://docs.subscriber.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/open-engineering/FtDwJKEB28O2B7rG/logo-light.svg?fit=max\u0026auto=format\u0026n=FtDwJKEB28O2B7rG\u0026q=85\u0026s=048dcffd502c6c603eb9b144c77aba02\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.subscriber.dev#website\",\"name\":\"subscriber.dev\",\"url\":\"https://docs.subscriber.dev\",\"publisher\":{\"@id\":\"https://docs.subscriber.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow#webpage\",\"url\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow\",\"name\":\"Update a workflow\",\"description\":\"Updates workflow fields. If steps is provided, it replaces ALL existing steps; likewise for triggers and exitConditions.\",\"dateModified\":\"2026-10-30T06:45:05.587Z\",\"isPartOf\":{\"@id\":\"https://docs.subscriber.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.subscriber.dev/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workflows\",\"item\":\"https://docs.subscriber.dev/api-reference/workflows/trigger-a-workflow\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a workflow\",\"item\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow#apireference\",\"headline\":\"Update a workflow\",\"name\":\"Update a workflow\",\"description\":\"Updates workflow fields. If steps is provided, it replaces ALL existing steps; likewise for triggers and exitConditions.\",\"url\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.subscriber.dev/api-reference/workflows/update-a-workflow#webpage\"},\"dateModified\":\"2026-10-30T06:45:05.587Z\",\"publisher\":{\"@id\":\"https://docs.subscriber.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.subscriber.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"subscriber.dev\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"subscriber.dev","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Tools","pages":[{"title":"Connect your AI agent","href":"/mcp"},{"title":"CLI reference","href":"/cli"},{"title":"TUI","href":"/tui"}]},{"group":"Guides","pages":[{"title":"Environments","href":"/environments"},{"title":"Subscribers","href":"/subscribers"},{"title":"Sending","href":"/sending"},{"title":"Workflows","href":"/workflows"},{"title":"Templates","href":"/templates"},{"title":"Broadcasts","href":"/broadcasts"},{"title":"Plans and limits","href":"/plans"},{"title":"Analytics","href":"/analytics"},{"title":"Troubleshooting","href":"/troubleshooting"}]},{"group":"Integrations","pages":[{"title":"Overview","href":"/integrations/overview"},{"title":"Resend","href":"/integrations/resend"},{"title":"Postmark","href":"/integrations/postmark"},{"title":"Amazon SES","href":"/integrations/ses"},{"title":"SMTP","href":"/integrations/smtp"},{"title":"Cloudflare Email","href":"/integrations/cloudflare"},{"title":"Stripe","href":"/integrations/stripe"}]},{"group":"API reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"group":"Users","pages":[{"title":"Get current user","deprecated":null,"version":null,"openapi":"/openapi.json get /users/me","href":"/api-reference/users/get-current-user"},{"title":"Update current user","deprecated":null,"version":null,"openapi":"/openapi.json put /users","href":"/api-reference/users/update-current-user"},{"title":"List AI agents connected through MCP sign-in","deprecated":null,"version":null,"openapi":"/openapi.json get /users/me/agents","href":"/api-reference/users/list-ai-agents-connected-through-mcp-sign-in"},{"title":"Disconnect an AI agent and revoke its access","deprecated":null,"version":null,"openapi":"/openapi.json delete /users/me/agents/{clientId}","href":"/api-reference/users/disconnect-an-ai-agent-and-revoke-its-access"},{"title":"Sign out the session this request was made with","deprecated":null,"version":null,"openapi":"/openapi.json delete /users/me/session","href":"/api-reference/users/sign-out-the-session-this-request-was-made-with"}]},{"group":"Workspaces","pages":[{"title":"Get user's workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces","href":"/api-reference/workspaces/get-users-workspaces"},{"title":"Create a new workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces","href":"/api-reference/workspaces/create-a-new-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/openapi.json patch /workspaces/{workspaceId}","href":"/api-reference/workspaces/update-a-workspace"}]},{"group":"Environments","pages":[{"title":"List a workspace's environments","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{workspaceId}/environments","href":"/api-reference/environments/list-a-workspaces-environments"},{"title":"Create a new environment in a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{workspaceId}/environments","href":"/api-reference/environments/create-a-new-environment-in-a-workspace"},{"title":"Get the environment's setup checklist","deprecated":null,"version":null,"openapi":"/openapi.json get /setup","href":"/api-reference/environments/get-the-environments-setup-checklist"}]},{"group":"Billing","pages":[{"title":"Get a workspace's plan and usage","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{workspaceId}/billing","href":"/api-reference/billing/get-a-workspaces-plan-and-usage"},{"title":"Get a link to start a paid plan (or the billing portal if the workspace already has one)","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{workspaceId}/billing/checkout","href":"/api-reference/billing/get-a-link-to-start-a-paid-plan-or-the-billing-portal-if-the-workspace-already-has-one"},{"title":"Get a link to manage or cancel the workspace's plan","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{workspaceId}/billing/portal","href":"/api-reference/billing/get-a-link-to-manage-or-cancel-the-workspaces-plan"}]},{"group":"Subscribers","pages":[{"title":"List subscribers","deprecated":null,"version":null,"openapi":"/openapi.json get /subscribers","href":"/api-reference/subscribers/list-subscribers"},{"title":"Create a new subscriber","deprecated":null,"version":null,"openapi":"/openapi.json post /subscribers","href":"/api-reference/subscribers/create-a-new-subscriber"},{"title":"List distinct tags","deprecated":null,"version":null,"openapi":"/openapi.json get /subscribers/tags","href":"/api-reference/subscribers/list-distinct-tags"},{"title":"Get a subscriber","deprecated":null,"version":null,"openapi":"/openapi.json get /subscribers/{subscriberId}","href":"/api-reference/subscribers/get-a-subscriber"},{"title":"Delete a subscriber","deprecated":null,"version":null,"openapi":"/openapi.json delete /subscribers/{subscriberId}","href":"/api-reference/subscribers/delete-a-subscriber"},{"title":"Update a subscriber","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscribers/{subscriberId}","href":"/api-reference/subscribers/update-a-subscriber"},{"title":"Bulk create or update subscribers","deprecated":null,"version":null,"openapi":"/openapi.json post /subscribers/bulk","href":"/api-reference/subscribers/bulk-create-or-update-subscribers"},{"title":"Update subscriber preferences","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscribers/{subscriberId}/preferences","href":"/api-reference/subscribers/update-subscriber-preferences"},{"title":"Add a tag to a subscriber","deprecated":null,"version":null,"openapi":"/openapi.json post /subscribers/{subscriberId}/tags","href":"/api-reference/subscribers/add-a-tag-to-a-subscriber"},{"title":"Remove a tag from a subscriber","deprecated":null,"version":null,"openapi":"/openapi.json delete /subscribers/{subscriberId}/tags/{tag}","href":"/api-reference/subscribers/remove-a-tag-from-a-subscriber"}]},{"group":"Workflows","pages":[{"title":"Trigger a workflow","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/trigger","href":"/api-reference/workflows/trigger-a-workflow"},{"title":"List workflows","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows","href":"/api-reference/workflows/list-workflows"},{"title":"Create a new workflow","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows","href":"/api-reference/workflows/create-a-new-workflow"},{"title":"List all workflow runs","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows/runs","href":"/api-reference/workflows/list-all-workflow-runs"},{"title":"Get a workflow","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows/{workflowId}","href":"/api-reference/workflows/get-a-workflow"},{"title":"Delete a workflow","description":"Soft-deletes a workflow. Existing in-flight runs are unaffected.","deprecated":null,"version":null,"openapi":"/openapi.json delete /workflows/{workflowId}","href":"/api-reference/workflows/delete-a-workflow"},{"title":"Update a workflow","deprecated":null,"version":null,"openapi":"/openapi.json patch /workflows/{workflowId}","href":"/api-reference/workflows/update-a-workflow"},{"title":"List runs for a workflow","description":"Returns a paginated list of trigger runs for this workflow, most recent first","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows/{workflowId}/runs","href":"/api-reference/workflows/list-runs-for-a-workflow"}]},{"group":"Broadcasts","pages":[{"title":"Preview a broadcast's audience size","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcast/preview","href":"/api-reference/broadcasts/preview-a-broadcasts-audience-size"},{"title":"Trigger a broadcast","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcast","href":"/api-reference/broadcasts/trigger-a-broadcast"},{"title":"List broadcasts for a workflow","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows/{workflowId}/broadcasts","href":"/api-reference/broadcasts/list-broadcasts-for-a-workflow"},{"title":"Get a broadcast","deprecated":null,"version":null,"openapi":"/openapi.json get /workflows/{workflowId}/broadcasts/{broadcastId}","href":"/api-reference/broadcasts/get-a-broadcast"},{"title":"Pause a broadcast","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcasts/{broadcastId}/pause","href":"/api-reference/broadcasts/pause-a-broadcast"},{"title":"Resume a paused broadcast","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcasts/{broadcastId}/resume","href":"/api-reference/broadcasts/resume-a-paused-broadcast"},{"title":"Cancel a broadcast","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcasts/{broadcastId}/cancel","href":"/api-reference/broadcasts/cancel-a-broadcast"},{"title":"Re-dispatch a broadcast","deprecated":null,"version":null,"openapi":"/openapi.json post /workflows/{workflowId}/broadcasts/{broadcastId}/redispatch","href":"/api-reference/broadcasts/re-dispatch-a-broadcast"}]},{"group":"Emails","pages":[{"title":"Render an email","deprecated":null,"version":null,"openapi":"/openapi.json post /emails/preview","href":"/api-reference/emails/render-an-email"},{"title":"Send a test email","deprecated":null,"version":null,"openapi":"/openapi.json post /emails/test","href":"/api-reference/emails/send-a-test-email"}]},{"group":"Integrations","pages":[{"title":"Get an integration","deprecated":null,"version":null,"openapi":"/openapi.json get /integrations/{type}","href":"/api-reference/integrations/get-an-integration"},{"title":"Remove an integration","deprecated":null,"version":null,"openapi":"/openapi.json delete /integrations/{type}","href":"/api-reference/integrations/remove-an-integration"},{"title":"Configure an integration","deprecated":null,"version":null,"openapi":"/openapi.json patch /integrations/{type}","href":"/api-reference/integrations/configure-an-integration"},{"title":"Set an integration as primary","deprecated":null,"version":null,"openapi":"/openapi.json patch /integrations/{type}/primary","href":"/api-reference/integrations/set-an-integration-as-primary"},{"title":"List configured integrations","deprecated":null,"version":null,"openapi":"/openapi.json get /integrations","href":"/api-reference/integrations/list-configured-integrations"}]},{"group":"Uploads","pages":[{"title":"Upload an image for your emails","deprecated":null,"version":null,"openapi":"/openapi.json post /uploads","href":"/api-reference/uploads/upload-an-image-for-your-emails"},{"title":"Turn a video link into a thumbnail","deprecated":null,"version":null,"openapi":"/openapi.json post /uploads/video","href":"/api-reference/uploads/turn-a-video-link-into-a-thumbnail"}]},{"group":"Analytics","pages":[{"title":"Get environment-wide analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /analytics","href":"/api-reference/analytics/get-environment-wide-analytics"}]},{"group":"Inbound events","pages":[{"title":"List inbound webhook events","deprecated":null,"version":null,"openapi":"/openapi.json get /inbound-events","href":"/api-reference/inbound-events/list-inbound-webhook-events"},{"title":"List workflow trigger sources","deprecated":null,"version":null,"openapi":"/openapi.json get /trigger-sources","href":"/api-reference/inbound-events/list-workflow-trigger-sources"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi.json post /keys","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.json delete /keys/{keyId}","href":"/api-reference/api-keys/revoke-an-api-key"},{"title":"Get the API key this request was made with","deprecated":null,"version":null,"openapi":"/openapi.json get /keys/me","href":"/api-reference/api-keys/get-the-api-key-this-request-was-made-with"}]}]},{"group":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting"}]}]},"basePath":"","title":"Update a workflow - subscriber.dev","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}