JSON API Files.SetFileDetails

Hi, can some point me in the correct direction.

I am trying to use the Files.SetFileDetails JSON API and having a few issues.

I have the following ocde

Code:
params = {
                "media": "video",
                "file": "smb://test/me.mkv"
            }
        query = {
            "jsonrpc": "2.0",
            "id": 1,
            "method": "Files.SetFileDetails",
            "params": [params]
        }
        jsonapi_request = json.dumps(query)
        log.info("JSONAPI_REQUEST: " + jsonapi_request)
        jsonapi_result = xbmc.executeJSONRPC(jsonapi_request)
        log.info("JSONAPI_RESULT: " + jsonapi_result)

and it returns the following

Code:
JSONAPI_REQUEST: {"params": [{"media": "video", "file": "smb://test/me.mkv"}], "jsonrpc": "2.0", "id": 1, "method": "Files.SetFileDetails"}

JSONAPI_RESULT: {"error":{"code":-32602,"data":{"method":"Files.SetFileDetails","stack":{"message":"Invalid type object received","name":"file","type":"string"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

Can anyone see any issues with the format or the request?