Back

[Solved] Manually set $createdAt and $updatedAt when creating users and documents

  • 0
  • Cloud
Sam K
15 Feb, 2024, 20:44

Is it possible to set $createdAt and $updatedAt manually on users and documents?

I am importing a data handed to me in json format that has users and other documents related to them. I have looked into Appwrite server sdk and Rest API docs but I couldn't find on if this is possible.

Thank you

TL;DR
There is currently no way to manually set the $createdAt and $updatedAt fields when creating users and documents in Appwrite. The Appwrite team has acknowledged this issue and it has been discussed on GitHub. There is no information available on whether this feature will be implemented in the future.
Guille
15 Feb, 2024, 20:50

Currently there is no way to manually set this fields, the appwrite team found the same issue with the migration tool, you can check this issue where steven talk about it: https://github.com/appwrite/appwrite/issues/7412

I don't have any information about if this will be implemented of it's in the roadmap

Sam K
15 Feb, 2024, 20:51

thank you @Guille

Sam K
15 Feb, 2024, 20:51

[Solved] Manually set $createdAt and $updatedAt when creating users and documents

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more