Announcement

Collapse
No announcement yet.

Overwrite createdAt value when adding (importing) records via API?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Overwrite createdAt value when adding (importing) records via API?

    Hey Everyone,

    I'm trying to import some historical note data from another system into the Note Entity and have the stream show the original date from the imported data. Setting the createdAt field to a specific date seems to get ignored.

    Post tohttp://localhost/api/v1/Note

    Code:
    {
    "post": "test 2",
    "attachmentsIds": [],
    "type": "Post",
    "isInternal": false,
    "parentId": "6094cc89a6e31b76d",
    "parentType": "Job",
    "createdAt":"2020-10-10 00:00:00"  <---  THIS GETS IGNORED.
    }
    Any hints before I dig further into the code?

    Thanks!

  • #2
    We have imported some data from another system too and we did not find any way to update creation date through API.
    We ended up updating those dates using sql updates.

    Comment

    Working...
    X