I’m trying to use Update a task to update a d```ate_value custom field in an Asana task. The date field is special, in that it consists of 2 values when the task is obtained via GET:
I’ve tried using the same when updating the task (PUT request: Update a task), but I always get a date_value: DayAndDateTime is not a JSON object error.
The docs on date custom fields (Custom fields) are not clear in how date values need to be formatted, and how a date value should be entered in the CUSTOM_FIELDS OBJECT at Update a task (see attached).
I have gone ahead and sent a PR to update our custom field update descriptions.
FROM: "{custom_field_gid}" => Value (Can be text, number, etc.)
TO: "{custom_field_gid}" => Value (Can be text, number, etc.). For date use format "YYYY-MM-DD" (EX: 2019-09-15). For date-time use ISO 8601 date string in UTC (EX: 2019-09-15T02:06:58.147Z)
@Nick_Youngblut Hope this makes it more clear. If you would like us to re-word it let us know.