Status 500 from update /native-query-snippet

I use python code then i can get session id so it work.
But i would like to update snippet the problem is it return status 500 for me.

requests.put(endpint+"/api/native-query-snippet/1",headers={“X-Metabase-Session”: session},data=json.dumps({“name”:“ddd”, "content ": “SELECT 999”}))

My problem is solved because I forgotten to added “content-type”: “application/json” in header.