You can't empty a Date item in a PATCH / PUT request.
Consider having a database enabled for Domino Data Services, Anonymous is authorized as an Editor (it doesn't matter the ACL, just for ease).
Place a POST request to create a document with a text item and a date item. This is the Body:
{
"Date": "2021-06-25T09:30:00Z",
"Subject": "New document"
}
Now a PATCH / PUT request on the newly created document to empty the Date item and change Subject's value:
{
"Date": "",
"Subject": "Edit document"
}
Output is:
{
"code": 400,
"text": "Bad Request",
"message": "Invalid date"
}
Steps to reproduce:
1. Create a database with a form having Date and Text field.
2. Enable Domino Data Services on server and database
3. Create a new document with Date and text data.
4. Call the API from Postman with JSON sample to empty the date field like below.
Example API call: http://<yourhostname.com>/<yourdatabase.nsf>/api/data/documents/unid/E694CEBB1E963323652587060052F722
JSON sample:
{
"Date":"",
"Subject":"test"
}
5. You will see error 400 Bad request
{
"code": 400,
"text": "Bad Request",
"message": "Invalid date"
}
6. It is reproducible with both PATCH / PUT request.
Expectation: Allow Date item to be emptied in a PATCH / PUT request with DDS (Domino Data Services) enabled.
Refer SPR # ASHEC4QFN8