Through Claim Put API not able to remove PriorDate , AccidentDate

For requests or help with our API
Post Reply
avdhutkotkar
Posts: 8
Joined: Mon Sep 15, 2025 11:32 pm

Through Claim Put API not able to remove PriorDate , AccidentDate

Post by avdhutkotkar »

This is about
PUT claims
Fields : PriorDate, AccidentDate , OrthoDate

When Claim is created from UI of Open dental these field's default has values 0001-01-01 i.e. Date Min values

Now, when they have some dates set and we want to remove those dates from API
We tried to use below payload

1.
PUT /claims/21
{
"AccidentDate": "0001-01-01"
}
We get validation error : "AccidentDate year must be between 1880 and 2100."
2.
PUT /claims/21
{
"PriorDate": "0001-01-01"
}
We get validation error : "PriorDate year must be between 1880 and 2100."
3.
PUT /claims/21
{
"OrthoDate": "0001-01-01"
}
This does work and updates value in DB as Date Min value

What is the way to use the API to remove the value for AccidentDate and PriorDate ? Or is it BUG in the API ?
RyanH
Posts: 69
Joined: Thu Dec 19, 2024 8:33 am

Re: Through Claim Put API not able to remove PriorDate , AccidentDate

Post by RyanH »

avdhutkotkar wrote: Fri Dec 05, 2025 5:39 am This is about
PUT claims
Fields : PriorDate, AccidentDate , OrthoDate

When Claim is created from UI of Open dental these field's default has values 0001-01-01 i.e. Date Min values

Now, when they have some dates set and we want to remove those dates from API
We tried to use below payload

1.
PUT /claims/21
{
"AccidentDate": "0001-01-01"
}
We get validation error : "AccidentDate year must be between 1880 and 2100."
2.
PUT /claims/21
{
"PriorDate": "0001-01-01"
}
We get validation error : "PriorDate year must be between 1880 and 2100."
3.
PUT /claims/21
{
"OrthoDate": "0001-01-01"
}
This does work and updates value in DB as Date Min value

What is the way to use the API to remove the value for AccidentDate and PriorDate ? Or is it BUG in the API ?
Hello avdhutkotkar,

You are correct, currently PriorDate and AccidentDate cannot be set to '0001-01-01' via the API. The ability to set these fields to '0001-01-01' is already in development in a current /claims enhancement. We will update this thread when the enhancement has been implemented.

Thanks!
RyanH
Posts: 69
Joined: Thu Dec 19, 2024 8:33 am

Re: Through Claim Put API not able to remove PriorDate , AccidentDate

Post by RyanH »

The ability to set PriorDate and AccidentDate to "0001-01-01" has been implemented and is available starting in version 25.3.41.
Post Reply