Skip to main content

Insights end date validation rules for format, ranges, and interval alignment requirements

End Date

INSIGHTS__INVALID_ENDDATE

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

INSIGHTS__INVALID_ENDDATE_MAX

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

INSIGHTS__INVALID_ENDDATE_MIN

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

INSIGHTS__INVALID_ENDDATE_MISSING

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

INSIGHTS__INVALID_ENDDATE_BEFORE_STARTDATE_VALUE

DefinitionSeverityAPISampleMode
Validate that startDate is before endDate
VIOLATION
POST
Link
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_ENDDATE_BEFORE_STARTDATE_VALUE",
"message": "Start date '{{startDate}}' cannot be after end date '{{endDate}}'",
"context": {
"startDate": "2026-06-13",
"endDate": "2026-05-13"
}
}

INSIGHTS__INVALID_ENDDATE_MUST_END_WEEK

DefinitionSeverityAPISampleMode
Validate that endDate is at end of week
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_ENDDATE_MUST_END_WEEK",
"message": "Date is not arranged to interval: '{{value}}', field: '{{field}}', end date must be last day of week, ex: '{{validValue}}'",
"context": {
"field": "endDate",
"value": "DAY",
"validValue": "2026-05-13"
}
}

INSIGHTS__INVALID_ENDDATE_MUST_END_MONTH

DefinitionSeverityAPISampleMode
Validate that endDate is at end of month
VIOLATION
POST
S
Example Validation Report
{
"code": "INSIGHTS__INVALID_ENDDATE_MUST_END_MONTH",
"message": "Date is not arranged to interval: '{{value}}', field: '{{field}}', end date must be last day of month, ex: '{{validValue}}'",
"context": {
"field": "endDate",
"value": "MONTH",
"validValue": "2026-05-13"
}
}