Skip to main content

Insights start date validation rules for format, ranges, spatial reports, and interval alignment

Start Date

INSIGHTS__INVALID_SPATIAL_DATES_VALUE

DefinitionSeverityAPISampleMode
Validate that startDate and endDate are suitable for generation of a spatial report
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_SPATIAL_DATES_VALUE",
"message": "Start date '{{startDate}}' and end date '{{endDate}}' not suitable for spatial reports, must be 1 month or 1 year interval, start date arranged to beginning of month, end date arranged to end of month",
"context": {
"startDate": "2026-10-15",
"endDate": "2026-11-23"
}
}

INSIGHTS__INVALID_STARTDATE

DefinitionSeverityAPISampleMode
Validate that startDate value is valid
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE",
"message": "Field '{{field}}' must be in format of date without a time part, ex: '2024-10-22'",
"context": {
"field": "startDate"
}
}

INSIGHTS__INVALID_STARTDATE_MAX

DefinitionSeverityAPISampleMode
Validate that startDate is not after a permitted date
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE_MAX",
"message": "Field '{{field}}' cannot be after '{{maxValue}}'",
"context": {
"field": "startDate",
"maxValue": "2026-10-13"
}
}

INSIGHTS__INVALID_STARTDATE_MIN

DefinitionSeverityAPISampleMode
Validate that startDate is not before a permitted date
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE_MIN",
"message": "Field '{{field}}' cannot be before '{{minValue}}'",
"context": {
"field": "startDate",
"minValue": "2026-05-13"
}
}

INSIGHTS__INVALID_STARTDATE_MISSING

DefinitionSeverityAPISampleMode
Validate that startDate is present
VIOLATION
POST
Link
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE_MISSING",
"message": "Field '{{field}}' must be present",
"context": {
"field": "startDate"
}
}

INSIGHTS__INVALID_STARTDATE_MUST_START_WEEK

DefinitionSeverityAPISampleMode
Validate startDate week
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE_MUST_START_WEEK",
"message": "Date is not arranged to interval: '{{value}}', field: '{{field}}', start date must be first day of week, ex: '{{validValue}}'",
"context": {
"field": "startDate",
"value": "DAY",
"validValue": "2026-05-13"
}
}

INSIGHTS__INVALID_STARTDATE_MUST_START_MONTH

DefinitionSeverityAPISampleMode
Validate startDate month
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_STARTDATE_MUST_START_MONTH",
"message": "Date is not arranged to interval: '{{value}}', field: '{{field}}', start date must be first day of week, ex: '{{validValue}}'",
"context": {
"field": "startDate",
"value": "DAY",
"validValue": "2026-05-13"
}
}

INSIGHTS__INVALID_TOTALS_INTERVAL

DefinitionSeverityAPISampleMode
Validate that startDate is suitable for use with the specified timeGranularity
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_TOTALS_INTERVAL",
"message": "Field '{{field}}' has invalid value '{{value}}, totals only supported for interval WEEK or MONTH",
"context": {
"field": "startDate",
"value": "2026-05-13"
}
}

INSIGHTS__INVALID_TOTALS_DATES

DefinitionSeverityAPISampleMode
Validate that startDate is suitable for use
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_TOTALS_DATES",
"message": "Field '{{field}}' has invalid value '{{value}}, for totals dates must be arranged to week or month",
"context": {
"field": "startDate",
"value": "2026-05-13"
}
}

INSIGHTS__INVALID_DATES_INCOMPLETE_TOTAL

DefinitionSeverityAPISampleMode
Validate that reporting period encompassed by startDate and endDate is completed
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_DATES_INCOMPLETE_TOTAL",
"message": "Period not complete for '{{id}}'. Start date '{{startDate}}' and end date '{{endDate}} totals not yet available",
"context": {
"id": "9467895078742654976",
"startDate": "2026-10-01",
"endDate": "2026-10-31"
}
}