Yes, you can do this.
Please refer to the API documentation, found here:
thanks Russell for your reply,
I am just adding more clear picture, I have default Values ["A1","A2","A3"] in my dropdown filter when it is published using tableau desktop, Now when i am loading it though javasctipt API i want to changes this dropdown filte values to say ["B1","B2","B3"]
Values in a quick filter are driven by the data source, so they should change automatically if the table's values change. Perhaps you are using a parameter which allows you to set the display values at design time?
If you're working with a quick filter, values should update based on data. If you're using a parameter, the values are static and cannot be changed (via the API or any other mechanism) at runtime.