Apr 08, 2021 06:38 AM
Without any changes I recently started getting a 422 UNKNOWN_FIELD_NAME error for a field in my table. The field is available in the API docs ( Investor // Checkbox // boolean // This field is “true” when checked and otherwise empty.)
My body looks like:
data = {
‘fields’:{
‘Investor’: True
}
}
If I make a GET request for a particular record, the “fields” object looks like:
{‘Investor’: True}, passing back that same object inside data results in the same 422 error
Apr 08, 2021 07:44 AM
Try double quotes instead of single quotes.
Apr 08, 2021 08:01 AM
Yea that’s what I had originally unfortunately until I found another answer saying try single quotes. Same for both.
Jan 09, 2023 05:43 AM
Hello, I just figured this out, the document is outdated I guess.
I tried what you did and got the exact error, unknown field name /"fields"/.
Just remove the key "fields", it will work fine
Jan 30, 2024 07:46 PM
FYI in case anyone else is dealing with this error, I had this issue and it turned out I was using the wrong table in my API call 😅
Sep 12, 2024 05:05 AM
Same issue--this comment helped me catch the error 😂