datetime field is default to current datetime. using web to add, the datetime field is autofilled with datetime but using rest api to insert, the datetime is empty. pls advise.
Default values are only meant to work in interactive mode, they are used to prepopulate input controls. In your scenario you need to use code in BeforeAdd event: $values["DateField"] = now();