validateConfiguration( )


Important: This is a handler function. Implement it only as part of the service plugin.


This endpoint allows you to run your own logic to validate trigger fields. Implement this endpoint if you need to perform extra validation on top of the Wix validation process.

Wix calls Validate Configuration in the following cases:

  • When a Wix user activates the automation.
  • When a Wix user selects the automation from the Your automations list in the Automations dashboard.
  • When a Wix user opens the automation to edit it.

If the user configured filters when setting up their automation, these are included in the request. Wix uses the returned response to display an error message to a user if the requested trigger is invalid.

Method Declaration
Copy
Method Parameters
payloadValidateConfigurationEnvelope
Returns
Return Type:ValidateConfigurationResponse | Promise<ValidateConfigurationResponse>
Errors
ProviderNotFoundWixErrorclass
Did this help?