Will this thing work regarding updation of Kibana dashboard through python

For better reference, this is what I am trying to achieve. KQL syntax with python