Validate a chart version

Seats.io does not allow creating events for invalid charts. You can configure what 'invalid' means through the settings page at https://app.seats.io/company-settings.

The API call documented below returns the list of validation errors and warnings for a draft or published chart.

Validate a chart version#

POST https://api-{region}.seatsio.net/charts/{chartKey}/version/published/actions/validate
POST https://api-{region}.seatsio.net/charts/{chartKey}/version/draft/actions/validate
curl https://api-{region}.seatsio.net/charts/4250fffc-e41f-c7cb-986a-2c5e728b8c28/version/draft/actions/validate \
-X POST -u aSecretKey:

Example response

// valid drawing
{
"errors": [],
"warnings": []
}
// invalid drawing
{
"errors": ["VALIDATE_OBJECTS_WITHOUT_CATEGORIES"],
"warnings": ["VALIDATE_DUPLICATE_LABELS"]
}