• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

UpdateWorkflowDefinition

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

definition.yaml

String

Yes

The base64-encoded workflow definition YAML.

scope.id

String

Yes

Your account ID.

scope.type

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 definition
  • definition.version: The new version number of the workflow definition
  • definition.yaml: The base64-encoded workflow definition YAML
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.