This looks like the structures from when the rest api was originally created are different from the current api structure. Try creating a new endpoint in a test app and comparing the structures that are produced. You might need to manually update them if you keep getting errors