REST API POST Task PlannedStart not accepted

I want to change the description of a change task by REST API. Posting just the description structure that I want to change leads to PlannedStart and PlannedEnd missing. Giving also PlannedStart and PlannedEnd leads to "does not correspond to the required date format".

What do I do wrong?

curl -v -X PUT -H "Authorization: Basic MySecretAuthorizationString" -H "Content-Type: application/json" -s myBaseUrl.de/.../CH017749-001 --data-binary @data.txt

data.txt:

{
  "IVV_CD_ChangeAufgabe": {
    "description.structure": {"Description": [
      "Jenkins-Deploy",
      "Release for production",
      null,
      "Release: 24.0001"
    ]},
    "header": {
      "PlannedEnd": "2024-05-11T20:00:00+02:00",
      "PlannedStart": "2024-05-10T20:00:00+02:00"
    }
  }
}

Parents
  • 0

    * upload completely sent off: 503 out of 503 bytes
    < HTTP/1.1 400
    < X-Content-Type-Options: nosniff
    < Keep-Alive: timeout=60, max=100
    < Connection: Keep-Alive
    < Content-Type: application/json;charset=utf-8
    < Content-Length: 1560
    < Date: Fri, 10 May 2024 11:17:12 GMT
    < Connection: close
    < Server: WEB
    <
    ...
      "Messages": ["Das Datumsfeld für 'Geplanter Beginn:' bzw. 'Geplantes Ende:' entspricht nicht dem geforderten Datumsformat! Bitte nutzen Sie den Kalender-Button auf der rechten Seite des Feldes."],
      "ReturnCode": 71
    * Closing connection 0

  • 0   in reply to 

    Best guess. Check the operator record of integration user or whichever user you are using for the REST. I think it uses the operator set date format. If the operator record date format is not set, it will uses the company record date format.

    Best Regards,

    Jason

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to   

    Thank you for your guess. It seems that this is caused by custom code of our admin that handles this data. About to be approved.

Reply Children