First steps
Events and Behaviour Tracking
User Data
- Email Builder Review
- Designing your email
- Creating a Synchronized Module
- Setting Responsivity
- Building Smart Containers
- Creating a Gmail Promotions Annotation
- Adding a Rollover Effect
- Adding a Background to an Email
- Adding Anchor Links
- Adding a Video to an Email
- Adding a Table to an Email
- Adding a Custom Font
- Adding Social Media Buttons
- Editing HTML and CSS
- Working with “Images” block
Omnichannel
Automation
Personalization
Analytics
Multilanguage Campaigns
Recommendations
API
Security and Compliance
Integration
Validating event parameters
When you create events in Yespo, it is essential that the names of the entered parameters are correct.
The Yespo system gives you the possibility to validate events and provide immediate feedback if their parameters contain errors.
Using the event parameters validation, you can:
- Check that a parameter is in a defined set.
- Check that a required parameter is set.
Validating event parameters in your account
To activate the event parameters validation when creating a new event or editing an existing event:
- Enable the Validate parameters slide button.
- Click + Add parameter.
- Enter the parameter name in the corresponding field and select the Required parameter checkbox if that parameter is required.
- Add other parameters as necessary, then click Add.
See Events to learn more about how to create events in eSputnik.
When the Validate parameters option is enabled, the system will accept an event only if it meets the specified structure, otherwise, it will not accept it and send the error “400 bad request” and the required event structure.
Validating event parameters using API
You can validate event parameters using Yespo API Generate event:
POST | https://yespo.io/api/v2/event |
To validate the event parameters in your API request, indicate the parameters you need to validate in params of the request body.
If the parameters do not meet the specified structure, you will get the “400 bad request” error and the required event structure in the response.
Response example:
The event should have the following params: [
{
"name": "EmailAddress",
"required": true
},
{
"name": "Phone Number",
"required": false
},
{
"name": "Name",
"required": false
}
]
See API documentation for more information.