Create a new workflow version or update an existing one.
Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one.
This operation will:
Create the version if it doesn’t exist, or patch the stored one
Set this version as the latest version for the workflow
Important: Once a version is locked, it cannot be modified.
The complete workflow definition for this version.
Required when creating a new version; omit (or send null) to keep the stored definition when updating.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"each::labs","colors":{"primary":"#FF3C15","light":"#FF6B4A","dark":"#E0340F"},"logo":{"light":"https://mintcdn.com/eachlabs-46a42812/JRQdasdZMuKOqlWC/logo-light.svg?fit=max\u0026auto=format\u0026n=JRQdasdZMuKOqlWC\u0026q=85\u0026s=9b60cf29c3cd64e967e2397b3cfebfff","dark":"https://mintcdn.com/eachlabs-46a42812/JRQdasdZMuKOqlWC/logo-dark.svg?fit=max\u0026auto=format\u0026n=JRQdasdZMuKOqlWC\u0026q=85\u0026s=af2b825294a507c7f735e2f17d26ec4e"},"favicon":"https://mintcdn.com/eachlabs-46a42812/eV_tp2sRqb8zb-A4/favicon.ico?fit=max\u0026auto=format\u0026n=eV_tp2sRqb8zb-A4\u0026q=85\u0026s=3d5cb9a0a41ba73100fa3958cf6e706a","appearance":{"default":"dark"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://www.eachlabs.ai","label":"Dashboard"},{"href":"/api/overview","label":"API Docs"}],"primary":{"type":"button","label":"Get API Key","href":"https://www.eachlabs.ai/api-keys"}},"footer":{"socials":{"discord":"https://discord.gg/eachlabs","github":"https://github.com/eachlabs","x":"https://x.com/eachlabs","linkedin":"https://linkedin.com/company/eachlabs"}},"seo":{"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":true},"contextual":{"options":["copy","view","claude","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"eachlabs-46a42812","hasAudioNarration":false,"actualSubdomain":"eachlabs-46a42812","customDomains":["docs.eachlabs.ai"],"gitSource":{"type":"github","owner":"eachlabs","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af3669d1f38dc5cafeb059c","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"each::api","count":31},{"language":"default","tag":"OpenAPI Reference","count":29},{"language":"default","tag":"each::workflows","count":24},{"language":"default","tag":"each::sense","count":16},{"language":"default","tag":"Overview","count":14},{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"each::video","count":12},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Webhooks","count":6},{"language":"default","tag":"Reference","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"workflows-api-reference/workflows/create-or-update-workflow-version","slug":"/workflows-api-reference/workflows/create-or-update-workflow-version","pageMetadata":{"title":"Create or update workflow version","description":"Create a new workflow version or update an existing one.\n\nPatch semantics: omitted body fields keep their stored values. `definition` is required to create a new version; omit it (or send `null`) to keep the stored one.\n\nThis operation will:\n- Create the version if it doesn't exist, or patch the stored one\n- Set this version as the latest version for the workflow\n\n**Important**: Once a version is locked, it cannot be modified.\n","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json put /workflows/{workflowID}/versions/{versionID}","href":"/workflows-api-reference/workflows/create-or-update-workflow-version","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a new workflow version or update an existing one.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Patch semantics: omitted body fields keep their stored values. \", _jsx(_components.code, {\n children: \"definition\"\n }), \" is required to create a new version; omit it (or send \", _jsx(_components.code, {\n children: \"null\"\n }), \") to keep the stored one.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"This operation will:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Create the version if it doesn’t exist, or patch the stored one\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Set this version as the latest version for the workflow\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Important\"\n }), \": Once a version is locked, it cannot be modified.\"]\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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Create or update workflow version","description":"Create a new workflow version or update an existing one.\n\nPatch semantics: omitted body fields keep their stored values. `definition` is required to create a new version; omit it (or send `null`) to keep the stored one.\n\nThis operation will:\n- Create the version if it doesn't exist, or patch the stored one\n- Set this version as the latest version for the workflow\n\n**Important**: Once a version is locked, it cannot be modified.\n","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json put /workflows/{workflowID}/versions/{versionID}","href":"/workflows-api-reference/workflows/create-or-update-workflow-version","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Workflows"],"summary":"Create or update workflow version","description":"Create a new workflow version or update an existing one.\n\nPatch semantics: omitted body fields keep their stored values. `definition` is required to create a new version; omit it (or send `null`) to keep the stored one.\n\nThis operation will:\n- Create the version if it doesn't exist, or patch the stored one\n- Set this version as the latest version for the workflow\n\n**Important**: Once a version is locked, it cannot be modified.\n","operationId":"upsertWorkflowVersion","requestBody":"b5715b36-6472-492a-8194-aad531522a5f","responses":{"200":"199eff1b-1495-4e6b-84a5-cec6e0205bc2","400":"f6bd792f-ed4e-463e-9980-ce59c3441c54","401":"573f927a-7387-4b4b-aa56-31c8f7e41c7a","403":"3b097eea-5e47-4d1f-91af-793b939be11d","404":"575a3da0-4997-4bf0-b0a3-a1d4761a04ef"},"method":"put","type":"path","servers":["e5ef6697-c70c-439e-bf8f-d52246d0d605"],"security":["c2d204f6-ba49-4bed-bf7a-55e2dbe65b5d"],"path":"/workflows/{workflowID}/versions/{versionID}","baseUrlOptions":["https://api.eachlabs.ai/v1"],"title":"Create or update workflow version","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c3bab9da-4e15-40b6-9e69-8fc090d306dd":{"name":"workflowID","in":"path","required":true,"description":"Unique workflow identifier","schema":{"type":"string","example":"wf_abc123","isRequired":true,"description":"Unique workflow identifier","uniqueKey":"","typeLabel":"string"}},"055c6571-ddc9-4812-9dad-2e94cd6896ba":{"name":"versionID","in":"path","required":true,"description":"Version identifier (e.g., \"v1\", \"v2\")","schema":{"type":"string","example":"v1","isRequired":true,"description":"Version identifier (e.g., \"v1\", \"v2\")","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version_id":{"type":"string","description":"Optional; overrides the version in the path when present","example":"v2","uniqueKey":"version_id","typeLabel":"string"},"definition":{"type":"object","description":"The complete workflow definition for this version.\nRequired when creating a new version; omit (or send null) to keep the stored definition when updating.\n","properties":{"version":{"type":"string","description":"Version identifier (should match version_id)","example":"v2","uniqueKey":"definition.version","typeLabel":"string"},"steps":{"type":"array","description":"Array of step definitions","items":{"type":"object","uniqueKey":"definition.steps.items.[INDEX]","typeLabel":"object"},"example":[{"id":"write_prompt","type":"model","model":"eachlabs-llm-router","params":{"model":"google/gemini-3.6-flash","messages":[{"role":"system","content":"Rewrite the idea as one vivid, detailed image prompt. Reply with the prompt only."},{"role":"user","content":"$.inputs.prompt"}]}},{"id":"generate_image","type":"model","model":"nano-banana-2-text-to-image","params":{"prompt":"$.write_prompt.primary.choices[0].message.content","aspect_ratio":"16:9"}}],"uniqueKey":"definition.steps","typeLabel":"object[]"},"input_schema":{"type":"object","description":"Workflow inputs under `properties`; each input has `type`, `required` (boolean) and an optional `default_value`. A run fails if a step references an input that was left out and has no default.","example":{"properties":{"prompt":{"type":"string","required":true}}},"uniqueKey":"definition.input_schema","typeLabel":"object"},"metadata":{"type":"object","description":"Additional workflow metadata including output mappings","uniqueKey":"definition.metadata","typeLabel":"object"}},"uniqueKey":"definition","typeLabel":"object"},"output_mapping":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"output_mapping.additionalProperties","typeLabel":"string"},"description":"Final output keys mapped to step output refs. Omit to leave unchanged, send {} to clear, send entries to replace the whole map.","example":{"image":"$.generate_image.output"},"uniqueKey":"output_mapping","typeLabel":"object"},"published":{"type":"boolean","description":"Publish state for this version. Omitted keeps the stored value.","uniqueKey":"published","typeLabel":"boolean"},"locked":{"type":"boolean","description":"Lock this version against further edits. Omitted keeps the stored value.","uniqueKey":"locked","typeLabel":"boolean"},"production":{"type":"boolean","description":"Mark as the production version. Omitted keeps the stored value.","uniqueKey":"production","typeLabel":"boolean"},"allowed_to_share":{"type":"boolean","description":"Toggle unlisted sharing for this version.\n\n- `true` → makes the version \"unlisted\" (accessible via link, hidden from public listings)\n- `false` → makes the version \"private\" (organization only)\n- No effect on public versions\n- Omitted keeps the stored value (new versions default to private)\n","uniqueKey":"allowed_to_share","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"version_id":"v2","definition":{"version":"v2","steps":[{"id":"write_prompt","type":"model","model":"eachlabs-llm-router","params":{"model":"google/gemini-3.6-flash","messages":[{"role":"system","content":"Rewrite the idea as one vivid, detailed image prompt. Reply with the prompt only."},{"role":"user","content":"$.inputs.prompt"}]}},{"id":"generate_image","type":"model","model":"nano-banana-2-text-to-image","params":{"prompt":"$.write_prompt.primary.choices[0].message.content","aspect_ratio":"16:9"}}],"input_schema":{"properties":{"prompt":{"type":"string","required":true}}},"metadata":{}},"output_mapping":{"image":"$.generate_image.output"},"published":true,"locked":true,"production":true,"allowed_to_share":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"199eff1b-1495-4e6b-84a5-cec6e0205bc2":{"description":"Workflow version created or updated successfully","content":{"application/json":{"schema":{"type":"object","description":"Summary information about a workflow version","required":["version_id","slug"],"properties":{"version_id":{"type":"string","description":"Version identifier","example":"v1","isRequired":true,"uniqueKey":"version_id","typeLabel":"string"},"slug":{"type":"string","description":"Workflow slug (inherited from parent workflow)","example":"text-to-image-generator","isRequired":true,"uniqueKey":"slug","typeLabel":"string"},"published":{"type":"boolean","description":"Whether this version is published","example":false,"uniqueKey":"published","typeLabel":"boolean"},"locked":{"type":"boolean","description":"Whether this version is locked from modifications","example":false,"uniqueKey":"locked","typeLabel":"boolean"},"production":{"type":"boolean","description":"Whether this is a production version","example":true,"uniqueKey":"production","typeLabel":"boolean"},"allowed_to_share":{"type":"boolean","description":"True if version is unlisted (accessible via direct link but hidden from public listings).","example":false,"uniqueKey":"allowed_to_share","typeLabel":"boolean"},"trigger_count":{"type":"integer","description":"Number of times this specific version has been triggered","example":15,"uniqueKey":"trigger_count","typeLabel":"integer"},"created_at":{"type":"string","format":"date-time","description":"RFC3339 timestamp when version was created","example":"2025-12-01T10:00:00Z","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"RFC3339 timestamp when version was last updated","example":"2025-12-05T14:20:00Z","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","enum":["active","archived","deleted"],"description":"Version lifecycle status","example":"active","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"visibility":{"type":"string","enum":["private","unlisted","public"],"description":"Version visibility","example":"private","uniqueKey":"visibility","typeLabel":"enum\u003cstring>"},"is_popular":{"type":"boolean","description":"Whether the version is featured as popular in public listings","example":false,"uniqueKey":"is_popular","typeLabel":"boolean"},"updated_by":{"type":"string","description":"Identifier of the user who last updated the version","example":"[email protected]","uniqueKey":"updated_by","typeLabel":"string"},"definition":{"type":"object","description":"The complete workflow definition — steps, input schema, and metadata.\nOmitted from the response when the version has no stored definition.\n","uniqueKey":"definition","typeLabel":"object"},"public_description":{"type":"string","description":"Public listing description. Omitted when unset.","example":"Generates images from text prompts","uniqueKey":"public_description","typeLabel":"string"},"public_thumbnail":{"type":"string","description":"Public listing thumbnail URL. Omitted when unset.","example":"https://storage.googleapis.com/uploads/thumb.png","uniqueKey":"public_thumbnail","typeLabel":"string"},"public_popular_sort_order":{"type":"integer","description":"Sort position within the popular public listing. Omitted when unset.","example":1,"uniqueKey":"public_popular_sort_order","typeLabel":"integer"},"public_example_output":{"type":"string","description":"Public listing example output URL. Omitted when unset.","example":"https://storage.googleapis.com/uploads/example.png","uniqueKey":"public_example_output","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"version_id":"v1","slug":"text-to-image-generator","published":false,"locked":false,"production":true,"allowed_to_share":false,"trigger_count":15,"created_at":"2025-12-01T10:00:00Z","updated_at":"2025-12-05T14:20:00Z","status":"active","visibility":"private","is_popular":false,"updated_by":"[email protected]","definition":{},"public_description":"Generates images from text prompts","public_thumbnail":"https://storage.googleapis.com/uploads/thumb.png","public_popular_sort_order":1,"public_example_output":"https://storage.googleapis.com/uploads/example.png"}}},"exampleType":"generated"}},"exampleType":"generated"},"f6bd792f-ed4e-463e-9980-ce59c3441c54":{"description":"Bad request - Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"573f927a-7387-4b4b-aa56-31c8f7e41c7a":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3b097eea-5e47-4d1f-91af-793b939be11d":{"description":"Forbidden - Operation not allowed (e.g., workflow is locked)","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"575a3da0-4997-4bf0-b0a3-a1d4761a04ef":{"description":"Not found - Resource does not exist","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c2d204f6-ba49-4bed-bf7a-55e2dbe65b5d":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key passed as `Authorization: Bearer \u003capi_key>`","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"e5ef6697-c70c-439e-bf8f-d52246d0d605":{"url":"https://api.eachlabs.ai/v1","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key passed as `Authorization: Bearer \u003capi_key>`","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key passed as `Authorization: Bearer \u003capi_key>`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi_specs/workflows.json"},"subdomain":"eachlabs-46a42812","siteName":"each::labs","title":"Create or update workflow version - each::labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"workflows-api-reference/workflows/create-or-update-workflow-version.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=\"dark\"}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=\"Create a new workflow version or update an existing one. Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one. This operation will: - Create the version if it doesn\u0026#x27;t exist, or patch the stored one - Set this version as the latest version for the workflow Important: Once a version is locked, it cannot be modified.\">\u003cmeta data-mint-head name=\"application-name\" content=\"each::labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or update workflow version - each::labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new workflow version or update an existing one. Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one. This operation will: - Create the version if it doesn\u0026#x27;t exist, or patch the stored one - Set this version as the latest version for the workflow Important: Once a version is locked, it cannot be modified.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"each::labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://eachlabs-46a42812.mintlify.site/_mintlify/api/og/v2?division=OpenAPI+Reference\u0026amp;title=Create+or+update+workflow+version\u0026amp;description=Create+a+new+workflow+version+or+update+an+existing+one.%0A%0APatch+semantics%3A+omitted+body+fields+keep+their+stored+values.+%60definition%60+is+required+to+create+a+ne\u0026amp;theme=f953c3376694fd5666c87a3e\u0026amp;signature=04309a7c9f92374917411ba7d1dfa46f477c13871e35e9b3ef17db62121a0167\">\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=\"Create or update workflow version - each::labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new workflow version or update an existing one. Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one. This operation will: - Create the version if it doesn\u0026#x27;t exist, or patch the stored one - Set this version as the latest version for the workflow Important: Once a version is locked, it cannot be modified.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://eachlabs-46a42812.mintlify.site/_mintlify/api/og/v2?division=OpenAPI+Reference\u0026amp;title=Create+or+update+workflow+version\u0026amp;description=Create+a+new+workflow+version+or+update+an+existing+one.%0A%0APatch+semantics%3A+omitted+body+fields+keep+their+stored+values.+%60definition%60+is+required+to+create+a+ne\u0026amp;theme=f953c3376694fd5666c87a3e\u0026amp;signature=04309a7c9f92374917411ba7d1dfa46f477c13871e35e9b3ef17db62121a0167\">\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/eachlabs-46a42812/2S_EOzMDvdf98XWD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"each::labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF3C15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/workflows-api-reference/workflows/create-or-update-workflow-version.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.eachlabs.ai/#organization\",\"name\":\"each::labs\",\"url\":\"https://docs.eachlabs.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/eachlabs-46a42812/JRQdasdZMuKOqlWC/logo-light.svg?fit=max\u0026auto=format\u0026n=JRQdasdZMuKOqlWC\u0026q=85\u0026s=9b60cf29c3cd64e967e2397b3cfebfff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.eachlabs.ai#website\",\"name\":\"each::labs\",\"url\":\"https://docs.eachlabs.ai\",\"publisher\":{\"@id\":\"https://docs.eachlabs.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version#webpage\",\"url\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version\",\"name\":\"Create or update workflow version\",\"description\":\"Create a new workflow version or update an existing one. Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one. This operation will: - Create the version if it doesn't exist, or patch the stored one - Set this version as the latest version for the workflow Important: Once a version is locked, it cannot be modified.\",\"isPartOf\":{\"@id\":\"https://docs.eachlabs.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OpenAPI Reference\",\"item\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/list-workflows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create or update workflow version\",\"item\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version#apireference\",\"headline\":\"Create or update workflow version\",\"name\":\"Create or update workflow version\",\"description\":\"Create a new workflow version or update an existing one. Patch semantics: omitted body fields keep their stored values. definition is required to create a new version; omit it (or send null) to keep the stored one. This operation will: - Create the version if it doesn't exist, or patch the stored one - Set this version as the latest version for the workflow Important: Once a version is locked, it cannot be modified.\",\"url\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version\",\"mainEntityOfPage\":{\"@id\":\"https://docs.eachlabs.ai/workflows-api-reference/workflows/create-or-update-workflow-version#webpage\"},\"publisher\":{\"@id\":\"https://docs.eachlabs.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.eachlabs.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"each::labs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"each::labs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/workflows-api-reference/workflows/create-or-update-workflow-version.md","siteName":"each::labs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"each::api","pages":[{"title":"each::api","href":"/api/overview"}]},{"tab":"each::storage","pages":[{"title":"each::storage","href":"/storage/overview"}]},{"tab":"each::workflows","groups":[{"group":"Overview","pages":[{"title":"each::workflows Overview","href":"/workflows/overview"},{"title":"each::workflows Quickstart","sidebarTitle":"Quickstart","href":"/workflows/quickstart"}]},{"group":"Concepts","pages":[{"title":"Workflow Structure","href":"/workflows/concepts/workflow-structure"},{"title":"Versioning","href":"/workflows/concepts/versioning"},{"title":"Parameter References","href":"/workflows/concepts/parameter-references"},{"title":"Fallback Configuration","href":"/workflows/concepts/fallback-configuration"}]},{"group":"API Reference","pages":[{"title":"Create Workflow (each::workflows)","sidebarTitle":"Create Workflow","href":"/workflows/endpoints/create-workflow"},{"title":"List Workflows (each::workflows)","sidebarTitle":"List Workflows","href":"/workflows/endpoints/list-workflows"},{"title":"Get Workflow","href":"/workflows/endpoints/get-workflow"},{"title":"Update Workflow (each::workflows)","sidebarTitle":"Update Workflow","href":"/workflows/endpoints/update-workflow"},{"title":"Create/Update Version","href":"/workflows/endpoints/create-version"},{"title":"Trigger Workflow (each::workflows)","sidebarTitle":"Trigger Workflow","href":"/workflows/endpoints/trigger-workflow"},{"title":"Bulk Trigger","href":"/workflows/endpoints/bulk-trigger"},{"title":"List Executions (each::workflows)","sidebarTitle":"List Executions","href":"/workflows/endpoints/list-executions"},{"title":"Get Execution","href":"/workflows/endpoints/get-execution"},{"title":"Public Workflows","href":"/workflows/endpoints/public-workflows"}]},{"group":"OpenAPI Reference","pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json get /workflows","href":"/workflows-api-reference/workflows/list-workflows"},{"title":"Get workflow details","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json get /workflows/{workflowID}","href":"/workflows-api-reference/workflows/get-workflow-details"},{"title":"Update workflow","description":"Rename a workflow. `name` is the only body field this endpoint honors, and unknown keys are ignored.\n\nA real rename regenerates the workflow slug, so any URL that pins the old slug stops resolving.\n\nNote: To update the workflow definition (steps), use the version endpoints instead.\n","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json put /workflows/{workflowID}","href":"/workflows-api-reference/workflows/update-workflow"},{"title":"Create or update workflow version","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json put /workflows/{workflowID}/versions/{versionID}","href":"/workflows-api-reference/workflows/create-or-update-workflow-version"},{"title":"Get public workflow version","description":"Retrieve a specific version of a public or unlisted workflow by organization nickname.\n\n**No authentication required** — send no `Authorization` header.\n\nExample:\n```\nGET /v1/public/@acme-corp/workflows/my-generator/versions/v1\n```\n","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json get /public/@{nickname}/workflows/{slug}/versions/{versionID}","href":"/workflows-api-reference/public-workflows/get-public-workflow-version"},{"title":"Trigger public workflow version","deprecated":null,"version":null,"openapi":"/openapi_specs/workflows.json post /public/@{nickname}/workflows/{slug}/versions/{versionID}/trigger","href":"/workflows-api-reference/public-workflows/trigger-public-workflow-version"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/workflows/webhooks"}]},{"group":"Examples","pages":[{"title":"each::workflows Examples","sidebarTitle":"Examples","href":"/workflows/examples"}]}]},{"tab":"each::video","pages":[{"title":"each::video","href":"/video/overview"}]},{"tab":"each::router","pages":[{"title":"each::router","href":"/llm-router/overview"}]},{"tab":"each::sense","pages":[{"title":"each::sense","href":"/sense/overview"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/python"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create or update workflow version - each::labs","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}