Skip to main content
mutation

Requires write_validations access scope.

Updates a cart and checkout validation. Use validationUpdate to rename it, toggle whether it's enabled at checkout, change its blockOnFailure behavior, or update its metafields.

Validation errors always block checkout progress. The blockOnFailure field controls whether runtime exceptions, such as timeouts, also block checkout.

•ID!
required

The ID representing the validation to update.

•ValidationUpdateInput!
required

The input fields to update a validation.


Was this section helpful?

Anchor to ValidationUpdatePayload returnsValidationUpdatePayload returns

•[ValidationUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•Validation

The updated validation.


Was this section helpful?