This API updates an existing workflow definition. It returns an error if the workflow definition does not already exist.
Input parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| String | Yes | The base64-encoded workflow definition YAML. |
| String | Yes | Your account ID. |
| Enum | Yes | The scope type (ACCOUNT). |
Sample request
mutation { workflowAutomationUpdateWorkflowDefinition( definition: { yaml: "<workflow definition YAML>" } scope: { id: "11608789", 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