Can't update value of custom field of type number with zero

When I update my custom field of type number with a value different than zero it works fine and the custom field is updated.

However updating the custom field value with zero results setting the value to null.

Here is my request to Asana API:
(passwords and names were changed)

PUT https://app.asana.com/api/1.0/tasks/9367031234567890 HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer [REDACTED]
Host: app.asana.com
Content-Length: 49

{"data":{"custom_fields":{"9956543212987654":0}}}

and the response contains:

{
    "gid":"1156543212987654",
    "resource_type":"custom_field",
    "resource_subtype":"number",
    "type":"number",
    "name":"Number of days",
    "enabled":true,
    "precision":0,
    "number_value":null
},

What might be a reason for such interesting behaviour?

1 Like

Someone messed up their if test in the back :grimacing: cc @Joe_Trollo

same issue for me

1 Like