Issue with API when updating devices - NullPointerException

tmes5 years ago

Have an issue when trying to update a device through the API, I get the following error: NullPointerException (BaseObjectResource: 139 < ...)
content-type header and accept header are passed.

Doing a PUT to http://{url}/api/devices/1 (for first device)
in body I do the following:

{
    "name": "Car X"
}

Any help is greatly appreciated

Anton Tananaev5 years ago

You are missing a lot of parameters. You have to pass full device model, not just the field that you want to change.