Update Definition
Definitions
Update Definition
POST
Update Definition
Use this API to update an existing workflow definition. Atomically increments the version, snapshots the prior content, and rejects if the stored version mismatchesDocumentation Index
Fetch the complete documentation index at: https://velt-v5-0-2-beta-28.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ifVersion. In-flight executions keep running on the version they started with.
Endpoint
POST https://api.velt.dev/v2/workflow/definitions/update
Headers
Your API key.
Your Auth Token.
Body
Params
Accepts every field from Create Definition plus:Every successful update increments
version and snapshots the prior content. In-flight executions are immune to updates — they keep running on the pinned definitionVersion from their dispatch.Example Requests
Rename a definition
Response
Success Response
Failure Response
NOT_FOUND (definition does not exist) / FAILED_PRECONDITION (ifVersion mismatch) / INVALID_ARGUMENT (schema or linter failure).

