How can I update records using criteria

How can I update records using criteria

In the API documentation is established that I have to use the id of the record to update the field but, is it the only criteria value I can use to update? what if I want to update all records that have blue as color?, for example.

Is it possible?