I'm trying to update multiple records using the batch operations available. I've got it working for text fields and option sets, but date fields don't seem to be working for me. Does anyone know how to format the request so my date fields update?
This works:
//--batch_123456
//Content-Type: multipart/mixed;boundary=changeset_BBB
//--changeset_BB
//Content-Type:application/http
//Content-Transfer-Encoding:binary
//Content-ID: id1
//PATCH /api/data/v9.2/entityname(id) HTTP/1.1
//Content-Type:application/json;type=entry
//{ "a1a_actionstatus": 548070001 }
//--changeset_BB--
//--batch_123456
//Content-Type: multipart/mixed;boundary=changeset_BBB
//--changeset_BBB
//Content-Type:application/http
//Content-Transfer-Encoding:binary
//Content-ID: id2
//PATCH /api/data/v9.2/entityname(id2) HTTP/1.1
//Content-Type:application/json;type=entry
//{ "a1a_actionstatus": 548070001 }
//--changeset_BBB--
//--batch_123456--
This does not work:
//--batch_ID12345
//Content-Type: multipart/mixed;boundary=changeset_BB
//--changeset_BB
//Content-Type:application/http
//Content-Transfer-Encoding:binary
//Content-ID: id1
//PATCH /api/data/v9.2/entityname(id1) HTTP/1.1
//Content-Type:application/json;type=entry
//{"scheduledstart":"2021-12-29T14:00:00.000Z","scheduledend":"2022-01-09T14:00:00.000Z"}
//--changeset_BB--
//--batch_ID12345
//Content-Type: multipart/mixed;boundary=changeset_BBB
//--changeset_BBB
//Content-Type:application/http
//Content-Transfer-Encoding:binary
//Content-ID: id2
//PATCH /api/data/v9.2/entityname(id2) HTTP/1.1
//Content-Type:application/json;type=entry
//{"scheduledstart":"2022-01-08T05:13:10.244Z","scheduledend":"2022-01-12T03:27:48.293Z"}
//--changeset_BBB--
//--batch_ID12345--