How to update a record in a datastore?

How would I go about updating a record in a datastore through the API? The record exists in the datastore and I would like to update some values on the record.

I attempted to use the datastore.set(id, hash) method but firebug complains that .set is not a function.

I am evaluating the pro edition of the software.

Thanks
Nick

Use the .update(id, hash) method. It is not documented on the datastore’s API.