Unable to put video mode

Going by this documentation:


I'm trying to make a PUT request to change my XD234's video mode.

I'm making a PUT call to my device to change its video mode, like so:

I've set the x-api-key in the headers and I'm using this as the body:

I keep getting this response:
{"data":{"error":{"status":500,"message":"[json.exception.type_error.304] cannot use at() with null"}}}

I verified that I'm using the right x-api-key because this GET request works fine:



Any ideas?

1 comment

  • 0
    Strube, David A

    I found the answer. (Thanks Alex in Support!)

    Not only the body of my request incomplete, but I also had to set the content-type from Text to JSON.

    The correct body of the request will look something like this:


    The exact text of the request can be found in Chrome by right-clicking on the Change Mode button, selecting Inspect, then clicking on the Network tab at the top, then proceeding with the change and looking at what was sent in the Request Payload.

Please sign in to leave a comment.