Back

datetime Attribute is automatically assigned when post data is empty

  • 0
  • Self Hosted
  • REST API
jasonStro
17 May, 2024, 16:21

I have 2 datetime attributes and only one of them needs to be set the other can be set if any one wants to. However when I submit directly to the API, Appwrite automatically assigns the current date and time of the API submission to the empty posted value. Is there a way that I can allow the attribute to be empty? It is already setup to allow the default value to be 'null'

TL;DR
Developers facing issue with datetime attributes being automatically assigned when post data is empty. They want to allow the attribute to be empty without current date and time being assigned. Attribute is already set to allow default value as 'null'.
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