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:
- Send a PUT request to the API with
"checked": "false"
for a custom field of type “checkbox”. - 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!