如何在 Maximo REST 中重置对象中的日期属性 API

How to reset a date attribute in an object in Maximo REST API

我想在 IBM 的 Maximo REST API 中更改人员对象中的 deligatefromdate/deligatetodate。 如果我想设置一个日期,我会使用这个请求: POST maximo/rest/mbo/person/12345/?_format=json&delegatefromdate=2020-12-02

然后返回我的个人对象,delegatefromdate 中的值为: “委托日期”:{ “内容”:“2020-12-02T00:00:00+01:00” }

但现在我想删除日期,我不想要 delegatetodate/delegatefromdate。 我试过:

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=
Value is not changed

POST maximo/rest/mbo/person/63006/?_format=json
Value is not changed

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=null
Error: Error 400: BMXAA4143E - The date format is not valid. Use the date format defined by your locale, or use the calendar control to enter a date.

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=NULL
Error: Error 400: BMXAA4143E - The date format is not valid. Use the date format defined by your locale, or use the calendar control to enter a date.

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=~null~
Error: Error 400: BMXAA4143E - The date format is not valid. Use the date format defined by your locale, or use the calendar control to enter a date.

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=~NULL~
Error: Error 400: BMXAA4143E - The date format is not valid. Use the date format defined by your locale, or use the calendar control to enter a date.

POST maximo/rest/mbo/person/63006/?_format=json&delegatefromdate=0
Date is set to: "2000-12-01T00:00:00+01:00"

我已经尝试过使用和不使用 &addchange=

所以我的问题是,我该如何清除这个日期? 在 GUI 中,我只是擦除值并保存,它就消失了。

IBM 将此问题记录为 APAR IV93341: UNABLE TO UPDATE FIELD TO NULL THROUGH THE MAXIMO REST API。有人在 Maximo 7.5.0.7 上找到了它,并且 APAR 修复包含在 7.6.0.8 中。