What is Date/Time type in API

68 views
Skip to first unread message

Dmitrii Bykov

unread,
Jul 26, 2020, 11:19:04 PM7/26/20
to mementodatabase
Hello!

I have a collection with fields:
Date/Time (id: 9), Action (id: 6)

Date/Time has a Date/Time type.

I send request:

curl --request POST \
  --url 'https://api.mementodatabase.com/v1/libraries/pTLgdTMiY/entries?token=TOKEN' \
  --header 'content-type: application/json' \
  --data '{
"fields": [
        {
          "id": 9,
          "value": "2020-07-22T06:01:52.794Z"
        },
        {
          "id": 6,
          "value": "any"
        }
      ]
}
'

After successful send the only id: 6 field been set. There are no errors. Perhaps Date/Time field should have a special value format. I've tried milliseconds in numeric format and GMT string -- all of them had the same effect.

How can I set Date/Time field through API?
Reply all
Reply to author
Forward
0 new messages