Use the workflowAutomationUpdateWorkflowDefinition mutation to update an existing workflow definition. It returns an error if the workflow definition does not already exist.
Input parameters
Parameter | Data type | Description |
|---|---|---|
| String | (Required) The base64-encoded workflow definition YAML. |
| String | (Required) Your account ID. |
| Enum | (Required) The scope type ( |
Sample request
mutation { workflowAutomationUpdateWorkflowDefinition( definition: { yaml: "<workflow definition YAML>" } scope: { id: "12345678", type: ACCOUNT } ) { definition { name version yaml } }}Sample response
The mutation returns:
definition.name: The name of the updated workflow definitiondefinition.version: The new version number of the workflow definitiondefinition.yaml: The base64-encoded workflow definition YAML