GET Returning Old Fields - Causing PUT Issues

I’m getting data from my database via the API, making changes to it, and attempting to PUT it back via the API. The problem is that when I do the GET I get all these old fields that, when PUT back, causes the call to fail with

{“status”:“ERROR”,“message”:“Unrecognized field”}

This is pretty painful since I don’t necessary know which fields are deprecated ahead of time. I also don’t need those old fields in the first place. Is there any way to tell the API not to return those fields during a GET?

Thanks!

After further investigation, I don’t think this is about old fields. Even when I do a PATCH of a single field that I know is correct I get an Unrecognized Field error.

You need to use “Content-Type: application/json” header

5 Likes