Checkbox Custom Field Always Checked Regardless of Value Sent via API

Hello everyone,

I’m encountering an issue with the Trello API since yesterday, when trying to update a custom field of type “checkbox” on a card. Regardless of whether I send "checked": "true" or "checked": "false", the checkbox is always marked as checked.

Here is the request I’m sending via the API:

Request:

curl -X PUT "https://api.trello.com/1/cards/{cardId}/customField/{customFieldId}/item?key={yourApiKey}&token={yourApiToken}" \
-H "Content-Type: application/json" \
-d '{
  "value": {
    "checked": "false"
  }
}'

Even though "checked": "false" should uncheck the checkbox, the checkbox remains checked after the request is processed.

Additional Information: I have also tried using other values such as false, "null", null, or an empty string "", but the API responds with "Invalid custom field item value." for those inputs, which is expected behavior.

Steps to reproduce:

  1. Send a PUT request to the API with "checked": "false" for a custom field of type “checkbox”.
  2. Observe that the checkbox is still checked, even though it should be unchecked.

Expected behavior: When "checked": "false" is sent, the checkbox should be unchecked.

Actual behavior: The checkbox remains checked, regardless of whether "checked": "true" or "checked": "false" is sent.

Thank you for your help! :pleading_face:

1 Like

Hello @LesRipeursIT

I have replicated that issue. Also, manually un-checking the checkbox in the GUI results in a lookup of that field’s value to return nothing, no objects at all, as if the field itself doesn’t exist. Using the REST API to subsequently set the field’s checked value to true or false then causes all objects to be returned, but that still has no effect on the GUI.

Something is definitely wrong. I suggest you log a case with Developer support.

2 Likes